1 | <?php |
||
25 | final class ShippingCategoryContext implements Context |
||
26 | { |
||
27 | /** |
||
28 | * @var SharedStorageInterface |
||
29 | */ |
||
30 | private $sharedStorage; |
||
31 | |||
32 | /** |
||
33 | * @var FactoryInterface |
||
34 | */ |
||
35 | private $shippingCategoryFactory; |
||
36 | |||
37 | /** |
||
38 | * @var RepositoryInterface |
||
39 | */ |
||
40 | private $shippingCategoryRepository; |
||
41 | |||
42 | /** |
||
43 | * @var ObjectManager |
||
44 | */ |
||
45 | private $shippingCategoryManager; |
||
46 | |||
47 | /** |
||
48 | * @param SharedStorageInterface $sharedStorage |
||
49 | * @param FactoryInterface $shippingCategoryFactory |
||
50 | * @param RepositoryInterface $shippingCategoryRepository |
||
51 | * @param ObjectManager $shippingCategoryManager |
||
52 | */ |
||
53 | public function __construct( |
||
64 | |||
65 | /** |
||
66 | * @Given the store has :firstShippingCategoryName shipping category |
||
67 | * @Given the store has :firstShippingCategoryName and :secondShippingCategoryName shipping category |
||
68 | */ |
||
69 | public function theStoreHasAndShippingCategory($firstShippingCategoryName, $secondShippingCategoryName = null) |
||
74 | |||
75 | /** |
||
76 | * @Given the store has :shippingCategoryName shipping category identified by :shippingCategoryCode |
||
77 | */ |
||
78 | public function theStoreHasShippingCategoryIdentifiedBy($shippingCategoryName, $shippingCategoryCode) |
||
82 | |||
83 | /** |
||
84 | * @param string $shippingCategoryName |
||
85 | * @param string $shippingCategoryCode |
||
86 | */ |
||
87 | private function createShippingCategory($shippingCategoryName, $shippingCategoryCode = null) |
||
101 | } |
||
102 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.