Newer
Older
<?php
/**
* This file contains QUI\ERP\Accounting\CalculationVatValue
*/
namespace QUI\ERP\Accounting;
use QUI;
use QUI\ERP\Currency\Currency;
/**
* Class CalculationVatValue
* - represent a number for the calculations
* - additional represent a vat number
*
* @package QUI\ERP\Accounting
*/
class CalculationVatValue extends CalculationValue
{
/**
* @var string
*/
/**
*/
/**
* CalculationValue constructor.
*
* @param string $text
* @param float|int $vat
* @param Currency|null $Currency
* @param bool|int $precision - The optional number of decimal digits to round to.
*/
public function __construct(
string $text,
float | int $vat,
null | QUI\ERP\Currency\Currency $Currency = null,
bool | int $precision = false
parent::__construct($number, $Currency, $precision);
$this->text = $text;
}
/**
* Return the vat text
*
* @return string
*/
{
return $this->text;
}
/**
* Return the VAT
*
*/
{
return $this->vat;
}
}