Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Gwo\Recruitment\Entity;
- class Product
- {
- private $id;
- private $unitPrice;
- private $minimumQuantity;
- private $quantity;
- private $item;
- /**
- * @return mixed
- */
- public function getItem()
- {
- return $this->item;
- }
- /**
- * @param mixed $item
- */
- public function setItem($item): void
- {
- $this->item = $item;
- }
- /**
- * @return mixed
- */
- public function getQuantity()
- {
- return $this->quantity;
- }
- /**
- * @param mixed $quantity
- */
- public function setQuantity($quantity): void
- {
- $this->quantity = $quantity;
- }
- /**
- * @return mixed
- */
- public function getMinimumQuantity()
- {
- return $this->minimumQuantity;
- }
- /**
- * @return void
- * @param mixed $minimumQuantity
- */
- public function setMinimumQuantity($minimumQuantity): void
- {
- if ($minimumQuantity <= 0) {
- throw new \InvalidArgumentException();
- }
- $this->minimumQuantity = $minimumQuantity;
- }
- /**
- * @return mixed
- */
- public function getUnitPrice()
- {
- return $this->unitPrice;
- }
- /**
- * @return void
- * @param mixed $unitPrice
- */
- public function setUnitPrice($unitPrice): void
- {
- if ($unitPrice <= 0) {
- throw new \InvalidArgumentException();
- }
- $this->unitPrice = $unitPrice;
- }
- /**
- * @return mixed
- */
- public function getId()
- {
- return $this->id;
- }
- public function setId($id)
- {
- $this->id = $id;
- return $this;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement