for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Appwilio\RussianPostSDK\Dispatching\Entities;
final class Tariff
{
private $data = [];
/**
* Стоимость без НДС в копейках. (rate).
*
* @return int
*/
public function getAmountWithoutVAT(): int
return $this->data['rate'];
}
* Стоимость с НДС в копейках.
public function getAmountWithVAT(): int
return $this->getAmountWithoutVAT() + $this->getVAT();
* НДС в копейках (vat).
public function getVAT(): int
return $this->data['vat'];