| Total Complexity | 6 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class FindStateRequest |
||
| 18 | { |
||
| 19 | private ?int $countryId; |
||
| 20 | |||
| 21 | private ?string $name; |
||
| 22 | |||
| 23 | public function __construct(int $countryId, ?string $name = null) |
||
| 24 | { |
||
| 25 | $this->countryId = $countryId; |
||
| 26 | $this->name = $name; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param int|null $countryId |
||
| 31 | */ |
||
| 32 | public function setCountryId(?int $countryId): void |
||
| 33 | { |
||
| 34 | $this->countryId = $countryId; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return int|null |
||
| 39 | */ |
||
| 40 | public function getCountryId(): ?int |
||
| 41 | { |
||
| 42 | return $this->countryId; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param string|null $name |
||
| 47 | */ |
||
| 48 | public function setName(?string $name): void |
||
| 49 | { |
||
| 50 | $this->name = $name; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return string|null |
||
| 55 | */ |
||
| 56 | public function getName(): ?string |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return array<string,int|string|null> |
||
| 63 | */ |
||
| 64 | public function toArray(): array |
||
| 69 | ]; |
||
| 70 | } |
||
| 71 | } |
||
| 72 |