vasildakov /
econt
| 1 | <?php |
||
| 2 | |||
| 3 | namespace VasilDakov\Econt\Request; |
||
| 4 | |||
| 5 | use VasilDakov\Econt\Constants; |
||
| 6 | |||
| 7 | final readonly class GetStreetsRequest |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 8 | { |
||
| 9 | 4 | public function __construct(public string $cityId) |
|
| 10 | { |
||
| 11 | 4 | } |
|
| 12 | |||
| 13 | 2 | public function toArray(): array |
|
| 14 | { |
||
| 15 | 2 | return [ |
|
| 16 | 2 | Constants::CITY_ID => $this->cityId |
|
| 17 | 2 | ]; |
|
| 18 | } |
||
| 19 | } |
||
| 20 |