1 | <?php |
||
26 | class Composite extends AbstractModifier |
||
27 | { |
||
28 | /** |
||
29 | * Path elements. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | const CHILDREN_PATH = 'product_attachment/children'; |
||
34 | const CONTAINER_ATTACHMENTS = 'container_attachments'; |
||
35 | |||
36 | const CONFIGURABLE_TYPE_CODE = 'configurable'; |
||
37 | const GROUPED_TYPE_CODE = 'grouped'; |
||
38 | |||
39 | /** |
||
40 | * @var array |
||
41 | */ |
||
42 | private $modifiers; |
||
43 | |||
44 | /** |
||
45 | * @var LocatorInterface |
||
46 | */ |
||
47 | private $locator; |
||
48 | |||
49 | /** |
||
50 | * @var ModifierFactory |
||
51 | */ |
||
52 | private $modifierFactory; |
||
53 | |||
54 | /** |
||
55 | * @var ModifierInterface[] |
||
56 | */ |
||
57 | private $modifiersInstances = []; |
||
58 | |||
59 | /** |
||
60 | * @param LocatorInterface $locator |
||
61 | * @param ModifierFactory $modifierFactory |
||
62 | * @param array $modifiers |
||
63 | */ |
||
64 | public function __construct( |
||
73 | |||
74 | /** |
||
75 | * @param array $data |
||
76 | * @return array $data |
||
77 | */ |
||
78 | public function modifyData(array $data) : array |
||
88 | |||
89 | |||
90 | /** |
||
91 | * @param array $meta |
||
92 | * @return array $meta |
||
93 | */ |
||
94 | public function modifyMeta(array $meta) : array |
||
104 | |||
105 | |||
106 | /** |
||
107 | * @return ModifierInterface[] |
||
108 | */ |
||
109 | private function getModifiers() : array |
||
119 | |||
120 | /** |
||
121 | * @return bool |
||
122 | */ |
||
123 | private function canShowAttachmentPanel() : bool |
||
136 | } |
||
137 |