vasildakov /
econt
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace VasilDakov\Econt\Request; |
||
| 6 | |||
| 7 | use VasilDakov\Econt\Constants; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * EcontInterface |
||
| 11 | * |
||
| 12 | * @author Vasil Dakov <[email protected]> |
||
| 13 | */ |
||
| 14 | final readonly class GetOfficesRequest |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 15 | { |
||
| 16 | 4 | public function __construct( |
|
| 17 | public string $countryCode, |
||
| 18 | public string $cityId |
||
| 19 | ) { |
||
| 20 | 4 | } |
|
| 21 | |||
| 22 | 2 | public function toArray(): array |
|
| 23 | { |
||
| 24 | 2 | return [ |
|
| 25 | 2 | Constants::COUNTRY_CODE => $this->countryCode, |
|
| 26 | 2 | Constants::CITY_ID => $this->cityId, |
|
| 27 | 2 | ]; |
|
| 28 | } |
||
| 29 | } |
||
| 30 |