| @@ 82-96 (lines=15) @@ | ||
| 79 | * @param \TechDivision\Import\Observers\EntityMergers\EntityMergerInterface $entityMerger The entity merger instance |
|
| 80 | * @param \TechDivision\Import\Observers\StateDetectorInterface|null $stateDetector The state detector instance to use |
|
| 81 | */ |
|
| 82 | public function __construct( |
|
| 83 | AttributeBunchProcessorInterface $attributeBunchProcessor, |
|
| 84 | AttributeLoaderInterface $attributeLoader = null, |
|
| 85 | EntityMergerInterface $entityMerger = null, |
|
| 86 | StateDetectorInterface $stateDetector = null |
|
| 87 | ) { |
|
| 88 | ||
| 89 | // initialize the bunch processor, the attribute loader and the entity merger instance |
|
| 90 | $this->attributeBunchProcessor = $attributeBunchProcessor; |
|
| 91 | $this->attributeLoader = $attributeLoader; |
|
| 92 | $this->entityMerger = $entityMerger; |
|
| 93 | ||
| 94 | // pass the state detector to the parent method |
|
| 95 | parent::__construct($stateDetector); |
|
| 96 | } |
|
| 97 | ||
| 98 | /** |
|
| 99 | * Process the observer's business logic. |
|
| @@ 109-121 (lines=13) @@ | ||
| 106 | * @param \TechDivision\Import\Observers\EntityMergers\EntityMergerInterface $entityMerger The entity merger instance |
|
| 107 | * @param \TechDivision\Import\Observers\StateDetectorInterface|null $stateDetector The state detector instance to use |
|
| 108 | */ |
|
| 109 | public function __construct( |
|
| 110 | AttributeBunchProcessorInterface $attributeBunchProcessor, |
|
| 111 | EntityMergerInterface $entityMerger = null, |
|
| 112 | StateDetectorInterface $stateDetector = null |
|
| 113 | ) { |
|
| 114 | ||
| 115 | // initialize the bunch processor and the entity merger instance |
|
| 116 | $this->attributeBunchProcessor = $attributeBunchProcessor; |
|
| 117 | $this->entityMerger = $entityMerger; |
|
| 118 | ||
| 119 | // pass the state detector to the parent method |
|
| 120 | parent::__construct($stateDetector); |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * Process the observer's business logic. |
|
| @@ 63-75 (lines=13) @@ | ||
| 60 | * @param \TechDivision\Import\Observers\EntityMergers\EntityMergerInterface $entityMerger The entity merger instance |
|
| 61 | * @param \TechDivision\Import\Observers\StateDetectorInterface|null $stateDetector The state detector instance to use |
|
| 62 | */ |
|
| 63 | public function __construct( |
|
| 64 | AttributeBunchProcessorInterface $attributeBunchProcessor, |
|
| 65 | EntityMergerInterface $entityMerger = null, |
|
| 66 | StateDetectorInterface $stateDetector = null |
|
| 67 | ) { |
|
| 68 | ||
| 69 | // initialize the bunch processor and the entity merger instance |
|
| 70 | $this->attributeBunchProcessor = $attributeBunchProcessor; |
|
| 71 | $this->entityMerger = $entityMerger; |
|
| 72 | ||
| 73 | // pass the state detector to the parent method |
|
| 74 | parent::__construct($stateDetector); |
|
| 75 | } |
|
| 76 | ||
| 77 | /** |
|
| 78 | * Process the observer's business logic. |
|