1 | <?php |
||
7 | class Adjustment implements \JsonSerializable |
||
8 | { |
||
9 | /** |
||
10 | * @var string|null |
||
11 | */ |
||
12 | protected $name; |
||
13 | |||
14 | /** |
||
15 | * @var float|null |
||
16 | */ |
||
17 | protected $amount; |
||
18 | |||
19 | /** |
||
20 | * Adjustment constructor. |
||
21 | */ |
||
22 | 6 | public function __construct() |
|
25 | |||
26 | /** |
||
27 | * @return \Kerox\Messenger\Model\Message\Attachment\Template\Receipt\Adjustment |
||
28 | */ |
||
29 | 6 | public static function create(): self |
|
33 | |||
34 | /** |
||
35 | * @return Adjustment |
||
36 | */ |
||
37 | 6 | public function setName(string $name): self |
|
43 | |||
44 | /** |
||
45 | * @return Adjustment |
||
46 | */ |
||
47 | 6 | public function setAmount(float $amount): self |
|
53 | |||
54 | 5 | public function toArray(): array |
|
63 | |||
64 | 5 | public function jsonSerialize(): array |
|
68 | } |
||
69 |