1 | <?php |
||
42 | class Magic360Subject extends AbstractProductSubject |
||
43 | { |
||
44 | |||
45 | /** |
||
46 | * The trait that provides file upload functionality. |
||
47 | * |
||
48 | * @var \TechDivision\Import\Subjects\FileUploadTrait |
||
49 | */ |
||
50 | use FileUploadTrait; |
||
51 | |||
52 | /** |
||
53 | * The mapping for the SKUs to the created entity IDs. |
||
54 | * |
||
55 | * @var array $skuEntityIdMapping |
||
56 | */ |
||
57 | protected $skuEntityIdMapping = array(); |
||
58 | |||
59 | /** |
||
60 | * The entity IDs which were initially within the data storage, before other observers influenced them |
||
61 | * |
||
62 | * @var array $preloadEntityIds |
||
63 | */ |
||
64 | protected $preloadEntityIds = array(); |
||
65 | |||
66 | /** |
||
67 | * The name of the craeted image. |
||
68 | * |
||
69 | * @var integer |
||
70 | */ |
||
71 | protected $parentImage; |
||
72 | |||
73 | /** |
||
74 | * Initializes the subject data |
||
75 | * |
||
76 | * @param string $serial The serial of the actual import |
||
77 | * |
||
78 | * @return void |
||
79 | */ |
||
80 | public function setUp($serial) |
||
117 | |||
118 | /** |
||
119 | * Return the entity ID for the passed SKU. |
||
120 | * |
||
121 | * @param string $sku The SKU to return the entity ID for |
||
122 | * |
||
123 | * @return integer The mapped entity ID |
||
124 | * @throws \Exception Is thrown if the SKU is not mapped yet |
||
125 | */ |
||
126 | public function mapSkuToEntityId($sku) |
||
137 | |||
138 | /** |
||
139 | * Return the entity ID for the passed SKU based on the preload entity IDs. |
||
140 | * |
||
141 | * @param string $sku The SKU to return the entity ID for |
||
142 | * |
||
143 | * @return integer The mapped entity ID |
||
144 | * @throws \Exception Is thrown if the SKU is not mapped yet |
||
145 | */ |
||
146 | public function mapSkuToPreloadEntityId($sku) |
||
157 | |||
158 | /** |
||
159 | * Set's the name of the created image. |
||
160 | * |
||
161 | * @param string $parentImage The name of the created image |
||
162 | * |
||
163 | * @return void |
||
164 | */ |
||
165 | public function setParentImage($parentImage) |
||
169 | |||
170 | /** |
||
171 | * Return's the name of the created image. |
||
172 | * |
||
173 | * @return string The name of the created image |
||
174 | */ |
||
175 | public function getParentImage() |
||
179 | } |
||
180 |
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: