1 | <?php declare(strict_types=1); |
||
10 | abstract class Property implements Iterator |
||
11 | { |
||
12 | |||
13 | /** @var Account\FioAccount */ |
||
14 | protected $accountFrom; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $currency = 'CZK'; |
||
18 | |||
19 | /** @var float */ |
||
20 | protected $amount = 0.0; |
||
21 | |||
22 | /** @var string */ |
||
23 | protected $accountTo = ''; |
||
24 | |||
25 | /** @var string */ |
||
26 | protected $date; |
||
27 | |||
28 | /** @var string */ |
||
29 | protected $comment; |
||
30 | |||
31 | /** |
||
32 | * Section in manual 7.2.3.1. |
||
33 | * @var int |
||
34 | */ |
||
35 | protected $paymentReason = 0; |
||
36 | |||
37 | /** @var array */ |
||
38 | private static $iterator = []; |
||
39 | |||
40 | /** @var string */ |
||
41 | private $key; |
||
42 | |||
43 | |||
44 | public function __construct(Account\FioAccount $account) |
||
49 | |||
50 | |||
51 | /** |
||
52 | * @return static |
||
53 | */ |
||
54 | public function setAmount(float $amount) |
||
62 | |||
63 | |||
64 | /** |
||
65 | * @return static |
||
66 | */ |
||
67 | abstract public function setAccountTo(string $accountTo); |
||
68 | |||
69 | |||
70 | /** |
||
71 | * Currency code ISO 4217. |
||
72 | * @return static |
||
73 | */ |
||
74 | public function setCurrency(string $code) |
||
82 | |||
83 | |||
84 | /** |
||
85 | * @return static |
||
86 | */ |
||
87 | public function setMyComment(string $comment) |
||
92 | |||
93 | |||
94 | /** |
||
95 | * @param int|string|\DateTimeInterface $date |
||
96 | * @return static |
||
97 | */ |
||
98 | public function setDate($date) |
||
103 | |||
104 | |||
105 | /** |
||
106 | * @return static |
||
107 | */ |
||
108 | public function setPaymentReason(int $code) |
||
113 | |||
114 | |||
115 | /** |
||
116 | * Order is important. |
||
117 | * @return array<string, bool> |
||
|
|||
118 | */ |
||
119 | abstract public function getExpectedProperty(): array; |
||
120 | |||
121 | |||
122 | abstract public function getStartXmlElement(): string; |
||
123 | |||
124 | |||
125 | private function getProperties(): array |
||
136 | |||
137 | |||
138 | /** |
||
139 | * ITERATOR INTERFACE ****************************************************** |
||
140 | * ************************************************************************* |
||
141 | */ |
||
142 | public function current() |
||
151 | |||
152 | |||
153 | public function key() |
||
157 | |||
158 | |||
159 | public function next() |
||
163 | |||
164 | |||
165 | public function rewind() |
||
170 | |||
171 | |||
172 | public function valid() |
||
176 | |||
177 | } |
||
178 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.