for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BWC\Share\Payment\Model;
use BWC\Share\Object\DeserializeTrait;
class PaymentItem
{
use DeserializeTrait;
/** @var string */
public $title;
/** @var double */
public $amount;
public $VATAmount;
/** @var integer */
public $VATPercent;
public $unit;
public $quantity;
public $iconURL;
/**
* @return double
*/
public function getVatAmount()
if (null === $this->VATAmount) {
return round($this->amount * $this->VATPercent / 100, 2);
} else {
return $this->VATAmount;
}