1 | <?php |
||
23 | class ZoneContext implements Context |
||
24 | { |
||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | private $euMembers = [ |
||
29 | 'BE', 'BG', 'CZ', 'DK', 'DE', 'EE', 'IE', 'GR', 'ES', |
||
30 | 'FR', 'IT', 'CY', 'LV', 'LT', 'LU', 'HU', 'MT', 'NL', |
||
31 | 'AT', 'PL', 'PT', 'RO', 'SI', 'SK', 'FI', 'SE', 'GB', |
||
32 | ]; |
||
33 | |||
34 | /** |
||
35 | * @var RepositoryInterface |
||
36 | */ |
||
37 | private $zoneRepository; |
||
38 | |||
39 | /** |
||
40 | * @var SettingsManagerInterface |
||
41 | */ |
||
42 | private $settingsManager; |
||
43 | |||
44 | /** |
||
45 | * @var ZoneFactoryInterface |
||
46 | */ |
||
47 | private $zoneFactory; |
||
48 | |||
49 | /** |
||
50 | * @param RepositoryInterface $zoneRepository |
||
51 | * @param SettingsManagerInterface $settingsManager |
||
52 | * @param ZoneFactoryInterface $zoneFactory |
||
53 | */ |
||
54 | public function __construct(RepositoryInterface $zoneRepository, SettingsManagerInterface $settingsManager, ZoneFactoryInterface $zoneFactory) |
||
60 | |||
61 | /** |
||
62 | * @Transform :zone zone |
||
63 | * @Transform zone :zone |
||
64 | */ |
||
65 | public function getZoneByCode($zone) |
||
74 | |||
75 | /** |
||
76 | * @Given /^there is "EU" zone containing all members of European Union$/ |
||
77 | */ |
||
78 | public function thereIsEUZoneContainingAllMembersOfEuropeanUnion() |
||
87 | |||
88 | /** |
||
89 | * @Given default tax zone is :taxZone |
||
90 | */ |
||
91 | public function defaultTaxZoneIs($taxZone) |
||
99 | } |
||
100 |