public function getPrice($vat = false) { $unitPrice = $this->getUnitPriceExcl(); if ($vat) { $unitPrice = $this->getUnitPriceInc(); } return bcmul($unitPrice, $this->getQuantity()); }