1 | <?php |
||
38 | class AttributeOptionSwatchObserver extends AbstractAttributeImportObserver |
||
39 | { |
||
40 | |||
41 | /** |
||
42 | * The attribute processor instance. |
||
43 | * |
||
44 | * @var \TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface |
||
45 | */ |
||
46 | protected $attributeBunchProcessor; |
||
47 | |||
48 | /** |
||
49 | * Initializes the observer with the passed subject instance. |
||
50 | * |
||
51 | * @param \TechDivision\Import\Subjects\SubjectInterface $subject The observer's subject instance |
||
52 | * @param \TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface $attributeBunchProcessor The attribute bunch processor instance |
||
53 | */ |
||
54 | public function __construct( |
||
65 | |||
66 | /** |
||
67 | * Process the observer's business logic. |
||
68 | * |
||
69 | * @return void |
||
70 | */ |
||
71 | protected function process() |
||
82 | |||
83 | /** |
||
84 | * Prepare the attributes of the entity that has to be persisted. |
||
85 | * |
||
86 | * @return array The prepared attributes |
||
87 | */ |
||
88 | protected function prepareAttributes() |
||
112 | |||
113 | /** |
||
114 | * Initialize the EAV attribute option value with the passed attributes and returns an instance. |
||
115 | * |
||
116 | * @param array $attr The EAV attribute option value attributes |
||
117 | * |
||
118 | * @return array The initialized EAV attribute option value |
||
119 | */ |
||
120 | protected function initializeAttribute(array $attr) |
||
124 | |||
125 | /** |
||
126 | * Return's the attribute bunch processor instance. |
||
127 | * |
||
128 | * @return \TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface The attribute bunch processor instance |
||
129 | */ |
||
130 | protected function getAttributeBunchProcessor() |
||
134 | |||
135 | /** |
||
136 | * Return's the ID of the option that has been created recently. |
||
137 | * |
||
138 | * @return integer The option ID |
||
139 | */ |
||
140 | protected function getLastOptionId() |
||
144 | |||
145 | /** |
||
146 | * Persist the passed attribute option swatch. |
||
147 | * |
||
148 | * @param array $attributeOptionSwatch The attribute option swatch to persist |
||
149 | * |
||
150 | * @return void |
||
151 | */ |
||
152 | protected function persistAttributeOptionSwatch(array $attributeOptionSwatch) |
||
156 | } |
||
157 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.