Total Complexity | 5 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 40% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class FindStreetRequest |
||
19 | { |
||
20 | use ToArray; |
||
|
|||
21 | |||
22 | private int $siteId; |
||
23 | |||
24 | private string $name; |
||
25 | |||
26 | private ?string $type = null; |
||
27 | 1 | ||
28 | public function __construct(int $siteId, string $name, ?string $type = null) |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return int |
||
37 | */ |
||
38 | public function getSiteId(): int |
||
39 | { |
||
40 | return $this->siteId; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | public function getName(): string |
||
47 | { |
||
48 | return $this->name; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return string|null |
||
53 | */ |
||
54 | public function getType(): ?string |
||
57 | } |
||
58 | |||
59 | public function toArray(): array |
||
65 | ]; |
||
66 | } |
||
67 | } |
||
68 |