Skip to content

Commit

Permalink
SQMAGOPC-595: update VatPercentage type for vat change
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszkaluzny-solteq committed Jul 1, 2024
1 parent dca50b2 commit 5d837d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/Interfaces/ItemInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 5 additions & 5 deletions src/Model/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Item implements \JsonSerializable, ItemInterface
/**
* The VAT percentage.
*
* @var integer
* @var float
*/
protected $vatPercentage;

Expand Down Expand Up @@ -159,20 +159,20 @@ 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;
}

/**
* 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;

Expand Down

0 comments on commit 5d837d1

Please # to comment.