| @@ 84-98 (lines=15) @@ | ||
| 81 | * @param \TechDivision\Import\Observers\EntityMergers\EntityMergerInterface $entityMerger The entity merger instance |
|
| 82 | * @param \TechDivision\Import\Observers\StateDetectorInterface|null $stateDetector The state detector instance |
|
| 83 | */ |
|
| 84 | public function __construct( |
|
| 85 | ProductBundleProcessorInterface $productBundleProcessor, |
|
| 86 | AttributeLoaderInterface $attributeLoader = null, |
|
| 87 | EntityMergerInterface $entityMerger = null, |
|
| 88 | StateDetectorInterface $stateDetector = null |
|
| 89 | ) { |
|
| 90 | ||
| 91 | // initialize the product bundle processor, the attribute loader and entity merger instance |
|
| 92 | $this->productBundleProcessor = $productBundleProcessor; |
|
| 93 | $this->attributeLoader = $attributeLoader; |
|
| 94 | $this->entityMerger = $entityMerger; |
|
| 95 | ||
| 96 | // pass the state detector to the parent method |
|
| 97 | parent::__construct($stateDetector); |
|
| 98 | } |
|
| 99 | ||
| 100 | /** |
|
| 101 | * Return's the product bundle processor instance. |
|
| @@ 89-103 (lines=15) @@ | ||
| 86 | * @param \TechDivision\Import\Observers\EntityMergers\EntityMergerInterface $entityMerger The entity merger instance |
|
| 87 | * @param \TechDivision\Import\Observers\StateDetectorInterface|null $stateDetector The state detector instance |
|
| 88 | */ |
|
| 89 | public function __construct( |
|
| 90 | ProductBundleProcessorInterface $productBundleProcessor, |
|
| 91 | AttributeLoaderInterface $attributeLoader = null, |
|
| 92 | EntityMergerInterface $entityMerger = null, |
|
| 93 | StateDetectorInterface $stateDetector = null |
|
| 94 | ) { |
|
| 95 | ||
| 96 | // initialize the product bundle processor and the attribute loader instance |
|
| 97 | $this->productBundleProcessor = $productBundleProcessor; |
|
| 98 | $this->attributeLoader = $attributeLoader; |
|
| 99 | $this->entityMerger = $entityMerger; |
|
| 100 | ||
| 101 | // pass the state detector to the parent method |
|
| 102 | parent::__construct($stateDetector); |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * Return's the product bundle processor instance. |
|