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