1 | <?php |
||
38 | class AttributeLabelObserver 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() |
||
88 | |||
89 | /** |
||
90 | * Prepare the attributes of the entity that has to be persisted. |
||
91 | * |
||
92 | * @return array The prepared attributes |
||
93 | */ |
||
94 | protected function prepareAttributes() |
||
115 | |||
116 | /** |
||
117 | * Initialize the attribute with the passed attributes and returns an instance. |
||
118 | * |
||
119 | * @param array $attr The attribute attributes |
||
120 | * |
||
121 | * @return array The initialized attribute |
||
122 | */ |
||
123 | protected function initializeAttribute(array $attr) |
||
127 | |||
128 | /** |
||
129 | * Return's the attribute bunch processor instance. |
||
130 | * |
||
131 | * @return \TechDivision\Import\Attribute\Services\AttributeBunchProcessorInterface The attribute bunch processor instance |
||
132 | */ |
||
133 | protected function getAttributeBunchProcessor() |
||
137 | |||
138 | /** |
||
139 | * Return's the ID of the attribute that has been created recently. |
||
140 | * |
||
141 | * @return integer The attribute ID |
||
142 | */ |
||
143 | protected function getLastAttributeId() |
||
147 | |||
148 | /** |
||
149 | * Persist the passed attribute label. |
||
150 | * |
||
151 | * @param array $attributeLabel The attribute label to persist |
||
152 | * |
||
153 | * @return void |
||
154 | */ |
||
155 | protected function persistAttributeLabel(array $attributeLabel) |
||
159 | } |
||
160 |
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.