1 | <?php |
||
12 | class Bookkeeping implements CreatableFromArray |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $incomeAccount; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $vatAccount; |
||
23 | |||
24 | /** |
||
25 | * @return string |
||
26 | */ |
||
27 | public function getIncomeAccount(): string |
||
31 | |||
32 | /** |
||
33 | * @param string $incomeAccount |
||
34 | * |
||
35 | * @return Bookkeeping |
||
36 | */ |
||
37 | public function withIncomeAccount(string $incomeAccount) |
||
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getVatAccount(): string |
||
52 | |||
53 | /** |
||
54 | * @param string $vatAccount |
||
55 | * |
||
56 | * @return Bookkeeping |
||
57 | */ |
||
58 | public function withVatAccount(string $vatAccount) |
||
65 | |||
66 | 2 | public function toArray() |
|
78 | |||
79 | /** |
||
80 | * Create an API response object from the HTTP response from the API server. |
||
81 | * |
||
82 | * @param array $data |
||
83 | * |
||
84 | * @return self |
||
85 | */ |
||
86 | 7 | public static function createFromArray(array $data) |
|
94 | } |
||
95 |