1 | <?php |
||
45 | class Magic360Subject extends AbstractProductSubject |
||
46 | { |
||
47 | |||
48 | /** |
||
49 | * The trait that provides file upload functionality. |
||
50 | * |
||
51 | * @var \TechDivision\Import\Subjects\FileUploadTrait |
||
52 | */ |
||
53 | use FileUploadTrait; |
||
54 | |||
55 | /** |
||
56 | * The mapping for the SKUs to the created entity IDs. |
||
57 | * |
||
58 | * @var array |
||
59 | */ |
||
60 | protected $skuEntityIdMapping = array(); |
||
61 | |||
62 | /** |
||
63 | * The entity IDs which were initially within the data storage, before other observers influenced them |
||
64 | * |
||
65 | * @var array |
||
66 | */ |
||
67 | protected $preloadEntityIds = array(); |
||
68 | |||
69 | /** |
||
70 | * Initializes the subject data |
||
71 | * |
||
72 | * @return void |
||
73 | * @see \Importer\Csv\Actions\ProductImportAction::prepare() |
||
74 | */ |
||
75 | public function setUp() |
||
118 | |||
119 | /** |
||
120 | * Return the entity ID for the passed SKU. |
||
121 | * |
||
122 | * @param string $sku The SKU to return the entity ID for |
||
123 | * |
||
124 | * @return integer The mapped entity ID |
||
125 | * @throws \Exception Is thrown if the SKU is not mapped yet |
||
126 | */ |
||
127 | public function mapSkuToEntityId($sku) |
||
138 | |||
139 | /** |
||
140 | * Return the entity ID for the passed SKU based on the preload entity IDs. |
||
141 | * |
||
142 | * @param string $sku The SKU to return the entity ID for |
||
143 | * |
||
144 | * @return integer The mapped entity ID |
||
145 | * @throws \Exception Is thrown if the SKU is not mapped yet |
||
146 | */ |
||
147 | public function mapSkuToPreloadEntityId($sku) |
||
158 | |||
159 | /** |
||
160 | * Loads the mag360 gallery with the passed product ID. |
||
161 | * |
||
162 | * @param integer $productId The product ID of the gallery |
||
163 | * |
||
164 | * @return array The bundle option |
||
165 | */ |
||
166 | public function loadMagic360Gallery($productId, $position) |
||
170 | |||
171 | /** |
||
172 | * Loads the mag360 gallery with the passed name, store + parent ID. |
||
173 | * |
||
174 | * @param string $productId The product ID of the mag360 column to be returned |
||
175 | * |
||
176 | * @return array The bundle option |
||
177 | */ |
||
178 | public function loadMagic360Columns($productId) |
||
182 | |||
183 | /** |
||
184 | * Persists the passed mag360 gallery and returns the ID. |
||
185 | * |
||
186 | * @param array $galleryEntity The mag360 gallery to persist |
||
187 | * |
||
188 | * @return string The ID of the persisted entity |
||
189 | */ |
||
190 | public function persistMagic360Gallery($galleryEntity) |
||
194 | |||
195 | /** |
||
196 | * Persists the passed mag360 gallery and returns the ID. |
||
197 | * |
||
198 | * @param array $productBundleOption The mag360 gallery to persist |
||
199 | * |
||
200 | * @return string The ID of the persisted entity |
||
201 | */ |
||
202 | public function persistMagic360Columns($columnsEntry) |
||
206 | |||
207 | /** |
||
208 | * Persists the passed mag360 gallery and returns the ID. |
||
209 | * |
||
210 | * @param array $galleryEntity The mag360 gallery to persist |
||
211 | * |
||
212 | * @return string The ID of the persisted entity |
||
213 | */ |
||
214 | public function deleteMagic360Gallery($row, $name = null) |
||
218 | |||
219 | /** |
||
220 | * Persists the passed mag360 gallery and returns the ID. |
||
221 | * |
||
222 | * @param array $productBundleOption The mag360 gallery to persist |
||
223 | * |
||
224 | * @return string The ID of the persisted entity |
||
225 | */ |
||
226 | public function deleteMagic360Columns($row, $name = null) |
||
230 | } |
||
231 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: