1 | <?php |
||
25 | final class ProductOptionContext implements Context |
||
26 | { |
||
27 | /** |
||
28 | * @var SharedStorageInterface |
||
29 | */ |
||
30 | private $sharedStorage; |
||
31 | |||
32 | /** |
||
33 | * @var OptionRepositoryInterface |
||
34 | */ |
||
35 | private $productOptionRepository; |
||
36 | |||
37 | /** |
||
38 | * @var FactoryInterface |
||
39 | */ |
||
40 | private $productOptionFactory; |
||
41 | |||
42 | /** |
||
43 | * @var FactoryInterface |
||
44 | */ |
||
45 | private $productOptionValueFactory; |
||
46 | |||
47 | /** |
||
48 | * @var ObjectManager |
||
49 | */ |
||
50 | private $objectManager; |
||
51 | |||
52 | /** |
||
53 | * @param SharedStorageInterface $sharedStorage |
||
54 | * @param OptionRepositoryInterface $productOptionRepository |
||
55 | * @param FactoryInterface $productOptionFactory |
||
56 | * @param FactoryInterface $productOptionValueFactory |
||
57 | * @param ObjectManager $objectManager |
||
58 | */ |
||
59 | public function __construct( |
||
72 | |||
73 | /** |
||
74 | * @Given the store has a product option :productOptionName with a code :productOptionCode |
||
75 | */ |
||
76 | public function theStoreHasAProductOptionWithACode($productOptionName, $productOptionCode) |
||
85 | |||
86 | /** |
||
87 | * @Given /^(this product option) has(?:| also) the "([^"]+)" option value with code "([^"]+)"$/ |
||
88 | */ |
||
89 | public function thisProductOptionHasTheOptionValueWithCode( |
||
99 | |||
100 | /** |
||
101 | * @param string $value |
||
102 | * @param string $code |
||
103 | * |
||
104 | * @return OptionValueInterface |
||
105 | */ |
||
106 | private function createProductOptionValue($value, $code) |
||
114 | } |
||
115 |