1 | <?php |
||
36 | class LinkObserver extends AbstractProductImportObserver |
||
37 | { |
||
38 | |||
39 | /** |
||
40 | * Will be invoked by the action on the events the listener has been registered for. |
||
41 | * |
||
42 | * @param array $row The row to handle |
||
43 | * |
||
44 | * @return array The modified row |
||
45 | * @see \TechDivision\Import\Product\Observers\ImportObserverInterface::handle() |
||
46 | */ |
||
47 | public function handle(array $row) |
||
59 | |||
60 | /** |
||
61 | * Process the observer's business logic. |
||
62 | * |
||
63 | * @return array The processed row |
||
64 | */ |
||
65 | protected function process() |
||
73 | |||
74 | /** |
||
75 | * Prepare the attributes of the entity that has to be persisted. |
||
76 | * |
||
77 | * @return array The prepared attributes |
||
78 | */ |
||
79 | protected function prepareAttributes() |
||
100 | |||
101 | /** |
||
102 | * Initialize the product link with the passed attributes and returns an instance. |
||
103 | * |
||
104 | * @param array $attr The product link attributes |
||
105 | * |
||
106 | * @return array The initialized product link |
||
107 | */ |
||
108 | protected function initializeProductLink(array $attr) |
||
112 | |||
113 | /** |
||
114 | * Temporary persist the last link ID. |
||
115 | * |
||
116 | * @param integer $lastLinkId The last link ID |
||
117 | * |
||
118 | * @return void |
||
119 | */ |
||
120 | protected function setLastLinkId($lastLinkId) |
||
124 | |||
125 | /** |
||
126 | * Persist's the passed product link data and return's the ID. |
||
127 | * |
||
128 | * @param array $productLink The product link data to persist |
||
129 | * |
||
130 | * @return string The ID of the persisted entity |
||
131 | */ |
||
132 | protected function persistProductLink($productLink) |
||
136 | |||
137 | /** |
||
138 | * Return the entity ID for the passed SKU. |
||
139 | * |
||
140 | * @param string $sku The SKU to return the entity ID for |
||
141 | * |
||
142 | * @return integer The mapped entity ID |
||
143 | * @throws \Exception Is thrown if the SKU is not mapped yet |
||
144 | */ |
||
145 | protected function mapSkuToEntityId($sku) |
||
149 | |||
150 | /** |
||
151 | * Return the entity ID for the passed SKU. |
||
152 | * |
||
153 | * @param string $sku The SKU to return the entity ID for |
||
154 | * |
||
155 | * @return integer The mapped entity ID |
||
156 | * @throws \Exception Is thrown if the SKU is not mapped yet |
||
157 | */ |
||
158 | protected function mapSku($sku) |
||
162 | |||
163 | /** |
||
164 | * Return the link type ID for the passed link type code. |
||
165 | * |
||
166 | * @param string $linkTypeCode The link type code to return the link type ID for |
||
167 | * |
||
168 | * @return integer The mapped link type ID |
||
169 | * @throws \Exception Is thrown if the link type code is not mapped yet |
||
170 | */ |
||
171 | protected function mapLinkTypeCodeToLinkTypeId($linkTypeCode) |
||
175 | } |
||
176 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.