Issues (27)

src/Request/GetCitiesRequest.php (1 issue)

Labels
Severity
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
A parse error occurred: Syntax error, unexpected T_READONLY, expecting T_CLASS on line 9 at column 6
Loading history...
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