| 1 | <?php |
||
| 21 | final class CountryContext implements Context |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var CountryNameConverterInterface |
||
| 25 | */ |
||
| 26 | private $countryNameConverter; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var RepositoryInterface |
||
| 30 | */ |
||
| 31 | private $countryRepository; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param CountryNameConverterInterface $countryNameConverter |
||
| 35 | * @param RepositoryInterface $countryRepository |
||
| 36 | */ |
||
| 37 | public function __construct( |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @Transform /^country "([^"]+)"$/ |
||
| 47 | */ |
||
| 48 | public function getCountryByName($countryName) |
||
| 59 | } |
||
| 60 |