Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | final class ItemsWrapper |
||
17 | { |
||
18 | /** @var Item[]|Item */ |
||
19 | private $Item; |
||
20 | |||
21 | /** @var string */ |
||
22 | private $DatePreparation; |
||
23 | |||
24 | /** |
||
25 | * @return Item[] |
||
26 | */ |
||
27 | 1 | public function getItems() |
|
28 | { |
||
29 | 1 | if ($this->Item instanceof Item) { |
|
30 | 1 | $this->Item = [$this->Item]; |
|
31 | } |
||
32 | |||
33 | 1 | return $this->Item; |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return \DateTimeImmutable |
||
38 | */ |
||
39 | 1 | public function getPreparedAt(): \DateTimeImmutable |
|
45 | ); |
||
46 | } |
||
48 |