| 1 | <?php |
||
| 5 | class PriceList implements \JsonSerializable |
||
| 6 | { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @var string |
||
| 10 | */ |
||
| 11 | protected $label; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $amount; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * PriceList constructor. |
||
| 20 | * |
||
| 21 | * @param string $label |
||
| 22 | * @param string $amount |
||
| 23 | */ |
||
| 24 | 2 | public function __construct(string $label, string $amount) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return array |
||
| 32 | */ |
||
| 33 | 1 | public function jsonSerialize(): array |
|
| 40 | } |
||
| 41 |