| 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); |
||
| 18 | public static function countryNotFound(string $id): self |
||
| 19 | { |
||
| 20 | if (!Feature::isActive('v6.6.0.0')) { |
||
| 21 | return new CountryNotFoundException($id); |
||
|
|
|||
| 22 | } |
||
| 23 | |||
| 24 | return new self( |
||
| 25 | Response::HTTP_BAD_REQUEST, |
||
| 26 | self::COUNTRY_NOT_FOUND, |
||
| 27 | 'Country with id "{{ countryId }}" not found.', |
||
| 28 | ['countryId' => $id] |
||
| 29 | ); |
||
| 46 |