| 1 | <?php |
||
| 5 | class Product |
||
| 6 | { |
||
| 7 | |||
| 8 | const EXTRACTOR = 'Checkout\Product'; |
||
| 9 | protected $name; |
||
| 10 | protected $qty; |
||
| 11 | protected $price; |
||
| 12 | protected $subTotal; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Product constructor. |
||
| 16 | * @param $name |
||
| 17 | * @param $qty |
||
| 18 | * @param $price |
||
| 19 | * @param $subTotal |
||
| 20 | */ |
||
| 21 | public function __construct($name, $qty, $price, $subTotal) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return mixed |
||
| 31 | */ |
||
| 32 | public function getName() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return mixed |
||
| 39 | */ |
||
| 40 | public function getQty() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return mixed |
||
| 47 | */ |
||
| 48 | public function getPrice() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return mixed |
||
| 55 | */ |
||
| 56 | public function getSubTotal() |
||
| 60 | |||
| 61 | |||
| 62 | } |