| 1 | <?php |
||
| 4 | class Adjustment implements \JsonSerializable |
||
| 5 | { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * @var null|string |
||
| 9 | */ |
||
| 10 | protected $name; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var null|float |
||
| 14 | */ |
||
| 15 | protected $amount; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Adjustment constructor. |
||
| 19 | */ |
||
| 20 | public function __construct() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $name |
||
| 27 | * @return Adjustment |
||
| 28 | */ |
||
| 29 | public function setName(string $name): Adjustment |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param float $amount |
||
| 38 | * @return Adjustment |
||
| 39 | */ |
||
| 40 | public function setAmount(float $amount): Adjustment |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return array |
||
| 49 | */ |
||
| 50 | public function jsonSerialize(): array |
||
| 59 | } |
||
| 60 |