1 | <?php |
||
25 | final class ChannelContext implements Context |
||
26 | { |
||
27 | /** |
||
28 | * @var SharedStorageInterface |
||
29 | */ |
||
30 | private $sharedStorage; |
||
31 | |||
32 | /** |
||
33 | * @var DefaultStoreDataInterface |
||
34 | */ |
||
35 | private $defaultFranceChannelFactory; |
||
36 | |||
37 | /** |
||
38 | * @var FactoryInterface |
||
39 | */ |
||
40 | private $countryFactory; |
||
41 | |||
42 | /** |
||
43 | * @var RepositoryInterface |
||
44 | */ |
||
45 | private $countryRepository; |
||
46 | |||
47 | /** |
||
48 | * @param SharedStorageInterface $sharedStorage |
||
49 | * @param DefaultStoreDataInterface $defaultFranceChannelFactory |
||
50 | * @param FactoryInterface $countryFactory |
||
51 | * @param RepositoryInterface $countryRepository |
||
52 | */ |
||
53 | public function __construct( |
||
64 | |||
65 | /** |
||
66 | * @Given the store is operating on a single channel |
||
67 | */ |
||
68 | public function thatStoreIsOperatingOnASingleChannel() |
||
73 | |||
74 | /** |
||
75 | * @Given /^store ships to "([^"]*)"$/ |
||
76 | * @Given /^store ships to "([^"]*)" and "([^"]*)"$/ |
||
77 | * @Given /^store ships to "([^"]*)", "([^"]*)" and "([^"]*)"$/ |
||
78 | */ |
||
79 | public function storeShipsTo($country1, $country2 = null, $country3 = null) |
||
95 | |||
96 | /** |
||
97 | * @param string $code |
||
98 | */ |
||
99 | private function createCountry($code) |
||
106 | |||
107 | /** |
||
108 | * @param string $name |
||
109 | * |
||
110 | * @return string |
||
111 | * |
||
112 | * @throws \InvalidArgumentException If name is not found in country code registry. |
||
113 | */ |
||
114 | private function getCountryCodeByEnglishCountryName($name) |
||
127 | } |
||
128 |