1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace VasilDakov\Econt\Request; |
||
6 | |||
7 | use VasilDakov\Econt\Constants; |
||
8 | |||
9 | final readonly class GetCitiesRequest |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
10 | { |
||
11 | 2 | public function __construct(public string $countryCode) |
|
12 | { |
||
13 | 2 | } |
|
14 | |||
15 | 2 | public function toArray(): array |
|
16 | { |
||
17 | 2 | return [ |
|
18 | 2 | Constants::COUNTRY_CODE => $this->countryCode |
|
19 | 2 | ]; |
|
20 | } |
||
21 | } |
||
22 |