Total Complexity | 5 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
20 | class FindSiteResponse |
||
21 | { |
||
22 | private ArrayCollection $sites; |
||
23 | |||
24 | private ?Error $error = null; |
||
25 | |||
26 | 1 | public function __construct(Error $error = null) |
|
27 | { |
||
28 | 1 | $this->sites = new ArrayCollection(); |
|
29 | 1 | $this->error = $error; |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return ArrayCollection |
||
34 | */ |
||
35 | 1 | public function getSites(): ArrayCollection |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return Error|null |
||
42 | */ |
||
43 | 1 | public function getError(): ?Error |
|
46 | } |
||
47 | |||
48 | /** |
||
49 | * @param Error|null $error |
||
50 | */ |
||
51 | 1 | public function setError(?Error $error): void |
|
52 | { |
||
53 | 1 | $this->error = $error; |
|
54 | } |
||
55 | |||
56 | 1 | public function toArray(): array |
|
61 | 1 | ]; |
|
62 | } |
||
64 |