1 | <?php |
||
39 | class Magic360ColumnsObserver extends AbstractProductImportObserver |
||
40 | { |
||
41 | |||
42 | /** |
||
43 | * The product magic360 processor instance. |
||
44 | * |
||
45 | * @var \TechDivision\Import\Product\Services\ProductBunchProcessorInterface |
||
46 | */ |
||
47 | protected $productMagic360Processor; |
||
48 | |||
49 | /** |
||
50 | * Initialize the observer with the passed product magic360 processor instance. |
||
51 | * |
||
52 | * @param \TechDivision\Import\Product\Magic360\Services\ProductMagic360ProcessorInterface $productMagic360Processor The product magic360 processor instance |
||
53 | */ |
||
54 | public function __construct(ProductMagic360ProcessorInterface $productMagic360Processor) |
||
58 | |||
59 | /** |
||
60 | * Return's the product magic360 processor instance. |
||
61 | * |
||
62 | * @return \TechDivision\Import\Product\Magic360\Services\ProductMagic360ProcessorInterface The product magic360 processor instance |
||
63 | */ |
||
64 | protected function getProductMagic360Processor() |
||
68 | |||
69 | /** |
||
70 | * Process the observer's business logic. |
||
71 | * |
||
72 | * @return array The processed row |
||
73 | * |
||
74 | * @throws \Exception Possible error in non-debug mode |
||
75 | */ |
||
76 | protected function process() |
||
98 | |||
99 | /** |
||
100 | * Initialize the magic360 column with the passed attributes and returns an instance. |
||
101 | * |
||
102 | * @param array $attr The product media gallery attributes |
||
103 | * |
||
104 | * @return array The initialized product media gallery |
||
105 | */ |
||
106 | protected function initializeMagic360Columns(array $attr) |
||
110 | |||
111 | /** |
||
112 | * Persists the column data and returns the ID. |
||
113 | * |
||
114 | * @param array $productMediaGallery The product media gallery data to persist |
||
115 | * |
||
116 | * @return string The ID of the persisted entity |
||
117 | */ |
||
118 | protected function persistMagic360Columns($productMediaGallery) |
||
122 | } |
||
123 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..