1 | <?php |
||
23 | final class GeographicalContext implements Context |
||
24 | { |
||
25 | /** |
||
26 | * @var FactoryInterface |
||
27 | */ |
||
28 | private $countryFactory; |
||
29 | |||
30 | /** |
||
31 | * @var RepositoryInterface |
||
32 | */ |
||
33 | private $countryRepository; |
||
34 | |||
35 | /** |
||
36 | * @param FactoryInterface $countryFactory |
||
37 | * @param RepositoryInterface $countryRepository |
||
38 | */ |
||
39 | public function __construct( |
||
46 | |||
47 | /** |
||
48 | * @Given /^store ships to "([^"]+)"$/ |
||
49 | * @Given /^store ships to "([^"]+)" and "([^"]+)"$/ |
||
50 | * @Given /^store ships to "([^"]+)", "([^"]+)" and "([^"]+)"$/ |
||
51 | */ |
||
52 | public function storeShipsTo($country1, $country2 = null, $country3 = null) |
||
62 | |||
63 | /** |
||
64 | * @param string $name |
||
65 | */ |
||
66 | private function createCountryNamed($name) |
||
74 | |||
75 | /** |
||
76 | * @param string $name |
||
77 | * |
||
78 | * @return string |
||
79 | * |
||
80 | * @throws \InvalidArgumentException If name is not found in country code registry. |
||
81 | */ |
||
82 | private function getCountryCodeByEnglishCountryName($name) |
||
95 | } |
||
96 |