Skip to content

Commit

Permalink
Add Quantity property to Product
Browse files Browse the repository at this point in the history
  • Loading branch information
inserve-paul committed Apr 10, 2024
1 parent fe118d2 commit 6394881
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Models/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Product
protected ?string $id = null;
protected ?string $serviceName = null;
protected ?string $name = null;
protected ?int $quantity = null;
protected ?string $minimumQuantity = null;
protected ?string $maximumQuantity = null;
/** @var Price[]|null */
Expand Down Expand Up @@ -62,6 +63,14 @@ public function getName(): ?string
return $this->name;
}

/**
* @return int|null
*/
public function getQuantity(): ?int
{
return $this->quantity;
}

/**
* @return string|null
*/
Expand Down Expand Up @@ -178,6 +187,18 @@ public function setName(?string $name): self
return $this;
}

/**
* @param int|null $quantity
*
* @return self
*/
public function setQuantity(?int $quantity): self
{
$this->quantity = $quantity;

return $this;
}

/**
* @param string|null $minimumQuantity
*
Expand Down

0 comments on commit 6394881

Please sign in to comment.