| @@ 110-124 (lines=15) @@ | ||
| 107 | * @param \TechDivision\Import\Observers\EntityMergers\EntityMergerInterface|null $entityMerger The entity merger instance |
|
| 108 | * @param \TechDivision\Import\Observers\StateDetectorInterface|null $stateDetector The state detector instance to use |
|
| 109 | */ |
|
| 110 | public function __construct( |
|
| 111 | ProductMediaProcessorInterface $productMediaProcessor, |
|
| 112 | AttributeLoaderInterface $attributeLoader = null, |
|
| 113 | EntityMergerInterface $entityMerger = null, |
|
| 114 | StateDetectorInterface $stateDetector = null |
|
| 115 | ) { |
|
| 116 | ||
| 117 | // initialize the media processor, the dynamic attribute loader and entity merger instance |
|
| 118 | $this->productMediaProcessor = $productMediaProcessor; |
|
| 119 | $this->attributeLoader = $attributeLoader; |
|
| 120 | $this->entityMerger = $entityMerger; |
|
| 121 | ||
| 122 | // pass the state detector to the parent method |
|
| 123 | parent::__construct($stateDetector); |
|
| 124 | } |
|
| 125 | ||
| 126 | /** |
|
| 127 | * Return's the product media processor instance. |
|
| @@ 86-100 (lines=15) @@ | ||
| 83 | * @param \TechDivision\Import\Observers\EntityMergers\EntityMergerInterface|null $entityMerger The entity merger instance |
|
| 84 | * @param \TechDivision\Import\Observers\StateDetectorInterface|null $stateDetector The state detector instance to use |
|
| 85 | */ |
|
| 86 | public function __construct( |
|
| 87 | ProductMediaProcessorInterface $productMediaProcessor, |
|
| 88 | AttributeLoaderInterface $attributeLoader = null, |
|
| 89 | EntityMergerInterface $entityMerger = null, |
|
| 90 | StateDetectorInterface $stateDetector = null |
|
| 91 | ) { |
|
| 92 | ||
| 93 | // initialize the media processor and the dynamic attribute loader instance |
|
| 94 | $this->productMediaProcessor = $productMediaProcessor; |
|
| 95 | $this->attributeLoader = $attributeLoader; |
|
| 96 | $this->entityMerger = $entityMerger; |
|
| 97 | ||
| 98 | // pass the state detector to the parent method |
|
| 99 | parent::__construct($stateDetector); |
|
| 100 | } |
|
| 101 | ||
| 102 | /** |
|
| 103 | * Return's the product media processor instance. |
|