| Total Complexity | 6 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 86.67% |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class FindSiteResponse |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @Serializer\Type("ArrayCollection<VasilDakov\Speedy\Model\Site>") |
||
| 25 | */ |
||
| 26 | private ArrayCollection $sites; |
||
| 27 | |||
| 28 | private ?Error $error = null; |
||
| 29 | |||
| 30 | 1 | public function __construct(?Error $error = null) |
|
| 31 | { |
||
| 32 | 1 | $this->sites = new ArrayCollection(); |
|
| 33 | 1 | $this->error = $error; |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param ArrayCollection $sites |
||
| 38 | */ |
||
| 39 | public function setSites(ArrayCollection $sites): void |
||
| 40 | { |
||
| 41 | $this->sites = $sites; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return ArrayCollection |
||
| 46 | */ |
||
| 47 | 1 | public function getSites(): ArrayCollection |
|
| 48 | { |
||
| 49 | 1 | return $this->sites; |
|
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return Error|null |
||
| 54 | */ |
||
| 55 | 1 | public function getError(): ?Error |
|
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param Error|null $error |
||
| 62 | */ |
||
| 63 | 1 | public function setError(?Error $error): void |
|
| 64 | { |
||
| 65 | 1 | $this->error = $error; |
|
| 66 | } |
||
| 67 | |||
| 68 | 1 | public function toArray(): array |
|
| 73 | 1 | ]; |
|
| 74 | } |
||
| 75 | } |
||
| 76 |