| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 32 | public static function countryStateNotFound(string $id): self |
||
| 33 | { |
||
| 34 | if (!Feature::isActive('v6.6.0.0')) { |
||
| 35 | return new CountryStateNotFoundException($id); |
||
| 36 | } |
||
| 37 | |||
| 38 | return new self( |
||
| 39 | Response::HTTP_BAD_REQUEST, |
||
| 40 | self::COUNTRY_STATE_NOT_FOUND, |
||
| 41 | 'Country state with id "{{ stateId }}" not found.', |
||
| 42 | ['stateId' => $id] |
||
| 43 | ); |
||
| 46 |