Amounts
in package
Table of Contents
Properties
- $grossAmount : float
- $netAmount : float
- $rate : VatRate
- $type : VatType
- $vatAmount : float
Methods
- __construct() : mixed
- add() : mixed
- getGrossAmount() : float
- getNetAmount() : float
- getRate() : VatRate
- getType() : VatType
- getVatAmount() : float
- setGrossAmount() : self
- setNetAmount() : self
- setVatAmount() : self
Properties
$grossAmount
private
float
$grossAmount
= 0.0
$netAmount
private
float
$netAmount
= 0.0
$rate
private
VatRate
$rate
$type
private
VatType
$type
$vatAmount
private
float
$vatAmount
= 0.0
Methods
__construct()
public
__construct(VatType $type, VatRate $rate) : mixed
Parameters
add()
public
add(Amounts $item) : mixed
Parameters
- $item : Amounts
getGrossAmount()
public
getGrossAmount() : float
Return values
floatgetNetAmount()
public
getNetAmount() : float
Return values
floatgetRate()
public
getRate() : VatRate
Return values
VatRategetType()
public
getType() : VatType
Return values
VatTypegetVatAmount()
public
getVatAmount() : float
Return values
floatsetGrossAmount()
public
setGrossAmount(float $grossAmount) : self
Parameters
- $grossAmount : float
Return values
selfsetNetAmount()
public
setNetAmount(float $netAmount) : self
Parameters
- $netAmount : float
Return values
selfsetVatAmount()
public
setVatAmount(float $vatAmount) : self
Parameters
- $vatAmount : float