diff --git a/src/Interfaces/ItemInterface.php b/src/Interfaces/ItemInterface.php index 25b3a61..1f00fa2 100644 --- a/src/Interfaces/ItemInterface.php +++ b/src/Interfaces/ItemInterface.php @@ -59,17 +59,17 @@ public function setUnits(?int $units): ItemInterface; /** * Get the VAT percentage. * - * @return int + * @return float */ - public function getVatPercentage(): ?int; + public function getVatPercentage(): ?float; /** * Set the VAT percentage. * - * @param int|null $vatPercentage + * @param float|null $vatPercentage * @return ItemInterface Return self to enable chaining. */ - public function setVatPercentage(?int $vatPercentage): ItemInterface; + public function setVatPercentage(?float $vatPercentage): ItemInterface; /** * Get the product code. diff --git a/src/Model/Item.php b/src/Model/Item.php index 4fa32a5..a221f9e 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -43,7 +43,7 @@ class Item implements \JsonSerializable, ItemInterface /** * The VAT percentage. * - * @var integer + * @var float */ protected $vatPercentage; @@ -159,9 +159,9 @@ public function setUnits(?int $units): ItemInterface /** * Get the VAT percentage. * - * @return int + * @return float */ - public function getVatPercentage(): ?int + public function getVatPercentage(): ?float { return $this->vatPercentage; } @@ -169,10 +169,10 @@ public function getVatPercentage(): ?int /** * Set the VAT percentage. * - * @param int $vatPercentage + * @param float $vatPercentage * @return ItemInterface Return self to enable chaining. */ - public function setVatPercentage(?int $vatPercentage): ItemInterface + public function setVatPercentage(?float $vatPercentage): ItemInterface { $this->vatPercentage = $vatPercentage;