1 | <?php |
||
23 | class SimilarProductAssociationFixture extends AbstractFixture |
||
24 | { |
||
25 | /** |
||
26 | * @var AbstractResourceFixture |
||
27 | */ |
||
28 | private $productAssociationTypeFixture; |
||
29 | |||
30 | /** |
||
31 | * @var AbstractResourceFixture |
||
32 | */ |
||
33 | private $productAssociationFixture; |
||
34 | |||
35 | /** |
||
36 | * @var ProductRepositoryInterface |
||
37 | */ |
||
38 | private $productRepository; |
||
39 | |||
40 | /** |
||
41 | * @var \Faker\Generator |
||
42 | */ |
||
43 | private $faker; |
||
44 | |||
45 | /** |
||
46 | * @var OptionsResolver |
||
47 | */ |
||
48 | private $optionsResolver; |
||
49 | |||
50 | /** |
||
51 | * @param AbstractResourceFixture $productAssociationTypeFixture |
||
52 | * @param AbstractResourceFixture $productAssociationFixture |
||
53 | * @param ProductRepositoryInterface $productRepository |
||
54 | */ |
||
55 | public function __construct( |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function getName() |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | public function load(array $options) |
||
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | protected function configureOptionsNode(ArrayNodeDefinition $optionsNode) |
||
118 | |||
119 | /** |
||
120 | * @param ProductInterface $owner |
||
121 | * |
||
122 | * @return string[] |
||
123 | */ |
||
124 | private function getAssociatedProductsAsArray(ProductInterface $owner) |
||
137 | } |
||
138 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.