VatRateHistory
in package
implements
JsonSerializable
Class EntityInterfaceVatType
Tags
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
$parkingVatRate
private
string|null
$parkingVatRate
Tags
$reducedAltVatRate
private
string|null
$reducedAltVatRate
Tags
$reducedVatRate
private
string|null
$reducedVatRate
Tags
$standardVatRate
private
string|null
$standardVatRate
Tags
$startDate
private
DateTime
$startDate
Tags
$superReducedVatRate
private
string|null
$superReducedVatRate
Tags
Methods
getCountry()
public
getCountry() : Country
Return values
CountrygetParkingVatRate()
public
getParkingVatRate() : string|null
Return values
string|nullgetReducedAltVatRate()
public
getReducedAltVatRate() : string|null
Return values
string|nullgetReducedVatRate()
public
getReducedVatRate() : string|null
Return values
string|nullgetStandardVatRate()
public
getStandardVatRate() : string
Return values
stringgetStartDate()
public
getStartDate() : DateTime
Return values
DateTimegetSuperReducedVatRate()
public
getSuperReducedVatRate() : string|null
Return values
string|nullgetVatRateByType()
public
getVatRateByType(mixed $type) : string
Parameters
- $type : mixed
Return values
stringjsonSerialize()
public
jsonSerialize() : mixed
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
_getVatRateByType()
protected
_getVatRateByType(int $type) : string
Parameters
- $type : int