| @@ 65-77 (lines=13) @@ | ||
| 62 | * @param \TechDivision\Import\Observers\AttributeLoaderInterface|null $attributeLoader The attribute loader instance |
|
| 63 | * @param \TechDivision\Import\Observers\StateDetectorInterface|null $stateDetector The state detector instance |
|
| 64 | */ |
|
| 65 | public function __construct( |
|
| 66 | ProductBundleProcessorInterface $productBundleProcessor, |
|
| 67 | AttributeLoaderInterface $attributeLoader = null, |
|
| 68 | StateDetectorInterface $stateDetector = null |
|
| 69 | ) { |
|
| 70 | ||
| 71 | // initialize the product bundle processor and the attribute loader instance |
|
| 72 | $this->productBundleProcessor = $productBundleProcessor; |
|
| 73 | $this->attributeLoader = $attributeLoader; |
|
| 74 | ||
| 75 | // pass the state detector to the parent method |
|
| 76 | parent::__construct($stateDetector); |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * Return's the product bundle processor instance. |
|
| @@ 65-77 (lines=13) @@ | ||
| 62 | * @param \TechDivision\Import\Observers\AttributeLoaderInterface|null $attributeLoader The attribute loader instance |
|
| 63 | * @param \TechDivision\Import\Observers\StateDetectorInterface|null $stateDetector The state detector instance |
|
| 64 | */ |
|
| 65 | public function __construct( |
|
| 66 | ProductBundleProcessorInterface $productBundleProcessor, |
|
| 67 | AttributeLoaderInterface $attributeLoader = null, |
|
| 68 | StateDetectorInterface $stateDetector = null |
|
| 69 | ) { |
|
| 70 | ||
| 71 | // initialize the product bundle processor and the attribute loader instance |
|
| 72 | $this->productBundleProcessor = $productBundleProcessor; |
|
| 73 | $this->attributeLoader = $attributeLoader; |
|
| 74 | ||
| 75 | // pass the state detector to the parent method |
|
| 76 | parent::__construct($stateDetector); |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * Return's the product bundle processor instance. |
|