| 1 | <?php |
||
| 5 | class Element implements \JsonSerializable |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var null|string |
||
| 9 | */ |
||
| 10 | private $currency; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var null|string |
||
| 14 | */ |
||
| 15 | private $imageUrl; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | private $price; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var int|null |
||
| 24 | */ |
||
| 25 | private $quantity; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var null|string |
||
| 29 | */ |
||
| 30 | private $subtitle; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | private $title; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $title |
||
| 39 | * @param null $price |
||
| 40 | * @param null|string $subtitle |
||
| 41 | * @param null|int $quantity |
||
| 42 | * @param null|string $currency |
||
| 43 | * @param null|string $imageUrl |
||
| 44 | */ |
||
| 45 | 8 | public function __construct( |
|
| 61 | |||
| 62 | /** |
||
| 63 | * @return null|string |
||
| 64 | */ |
||
| 65 | 1 | public function getImageUrl() |
|
| 69 | |||
| 70 | /** |
||
| 71 | * @return null|string |
||
| 72 | */ |
||
| 73 | 1 | public function getSubtitle() |
|
| 77 | |||
| 78 | /** |
||
| 79 | * @return string |
||
| 80 | */ |
||
| 81 | 1 | public function getTitle() |
|
| 85 | |||
| 86 | /** |
||
| 87 | * @return int|null |
||
| 88 | */ |
||
| 89 | 1 | public function getQuantity() |
|
| 93 | |||
| 94 | /** |
||
| 95 | * @return int|null |
||
| 96 | */ |
||
| 97 | 1 | public function getPrice() |
|
| 101 | |||
| 102 | /** |
||
| 103 | * @return null|string |
||
| 104 | */ |
||
| 105 | 1 | public function getCurrency() |
|
| 109 | |||
| 110 | /** |
||
| 111 | * @return array |
||
| 112 | */ |
||
| 113 | 1 | public function jsonSerialize() |
|
| 124 | } |
||
| 125 |