Documentation

VatRateHistory
in package
implements JsonSerializable

Class EntityInterfaceVatType

Tags
ORM\Entity

(readOnly=true, repositoryClass="Vatjar\Data\Repository\VatRateHistoryRepository")

ORM\Table

(name="vat_rate_history")

ORM\HasLifecycleCallbacks

()

Table of Contents

Interfaces

JsonSerializable

Properties

$country  : Country
$parkingVatRate  : string|null
$reducedAltVatRate  : string|null
$reducedVatRate  : string|null
$standardVatRate  : string|null
$startDate  : DateTime
$superReducedVatRate  : string|null

Methods

getCountry()  : Country
getParkingVatRate()  : string|null
getReducedAltVatRate()  : string|null
getReducedVatRate()  : string|null
getStandardVatRate()  : string
getStartDate()  : DateTime
getSuperReducedVatRate()  : string|null
getVatRateByType()  : string
jsonSerialize()  : mixed
loadDateTime()  : mixed
This is neccessary because Doctrine's UnitOfWork::createEntity() method tries to create an "idHash" using implode, and only has a country as id, because DateTime cannot be converted to string.
_getVatRateByType()  : string

Properties

$country

private Country $country
Tags
ORM\Id

()

ORM\GeneratedValue

(strategy="NONE")

ORM\ManyToOne

(targetEntity="Country")

ORM\JoinColumn

(name="country_id", referencedColumnName="id")

$parkingVatRate

private string|null $parkingVatRate
Tags
ORM\Column

(type="decimal", precision=1, nullable=true, name="parking_vat_rate")

$reducedAltVatRate

private string|null $reducedAltVatRate
Tags
ORM\Column

(type="decimal", precision=1, nullable=true, name="reduced_alt_vat_rate")

$reducedVatRate

private string|null $reducedVatRate
Tags
ORM\Column

(type="decimal", precision=1, nullable=true, name="reduced_vat_rate")

$standardVatRate

private string|null $standardVatRate
Tags
ORM\Column

(type="decimal", precision=1, nullable=false, name="standard_vat_rate")

$startDate

private DateTime $startDate
Tags
ORM\Id

()

ORM\GeneratedValue

(strategy="NONE")

ORM\Column

(type="string", name="start_date")

$superReducedVatRate

private string|null $superReducedVatRate
Tags
ORM\Column

(type="decimal", precision=1, nullable=true, name="super_reduced_vat_rate")

Methods

getParkingVatRate()

public getParkingVatRate() : string|null
Return values
string|null

getReducedAltVatRate()

public getReducedAltVatRate() : string|null
Return values
string|null

getReducedVatRate()

public getReducedVatRate() : string|null
Return values
string|null

getStandardVatRate()

public getStandardVatRate() : string
Return values
string

getStartDate()

public getStartDate() : DateTime
Return values
DateTime

getSuperReducedVatRate()

public getSuperReducedVatRate() : string|null
Return values
string|null

getVatRateByType()

public getVatRateByType(mixed $type) : string
Parameters
$type : mixed
Return values
string

loadDateTime()

This is neccessary because Doctrine's UnitOfWork::createEntity() method tries to create an "idHash" using implode, and only has a country as id, because DateTime cannot be converted to string.

public loadDateTime() : mixed

This results in retrieving the same entity again for the next dates.

Tags
ORM\PostLoad

()

access

private

_getVatRateByType()

protected _getVatRateByType(int $type) : string
Parameters
$type : int
Return values
string

        
On this page

Search results