/** * @constructor * @param DataInterface $configuration * @param EventManagerInterface $eventManager * @param BackendDecorator $backendTransport */ public function __construct(DataInterface $configuration, EventManagerInterface $eventManager, BackendDecorator $backendTransport) { parent::__construct($configuration, $eventManager); $this->backendTransport = $backendTransport; }
/** * @constructor * @param DataInterface $configuration * @param EventManagerInterface $eventManager */ public function __construct(DataInterface $configuration, EventManagerInterface $eventManager) { $this->mappingData = array_merge(null !== $this->mappingData ? $this->mappingData : [], $this->additionalMappingData); parent::__construct($configuration, $eventManager); }
/** * Constructor * * @constructor * @param Config $configuration * @param FixtureFactory $fixtureFactory */ public function __construct(Config $configuration, FixtureFactory $fixtureFactory) { parent::__construct($configuration); $this->fixtureFactory = $fixtureFactory; }
/** * @constructor * @param DataInterface $configuration * @param EventManagerInterface $eventManager * @param FixtureFactory $fixtureFactory */ public function __construct(DataInterface $configuration, EventManagerInterface $eventManager, FixtureFactory $fixtureFactory) { parent::__construct($configuration, $eventManager); $this->fixtureFactory = $fixtureFactory; }
/** * Replace mapping data in fixture data. * * @param array $data * @return array */ protected function replaceMappingData(array $data) { if (isset($data['store_contents'])) { $storeContents = $data['store_contents']; unset($data['store_contents']); $data['store_contents'][] = $storeContents['store_content']; $data['store_contents_not_use'][1] = $storeContents['store_contents_not_use'] === 'Yes' ? 1 : 0; } if (isset($data['customer_segment_ids'])) { foreach ($data['customer_segment_ids'] as $key => $customerSegment) { $data["customer_segment_ids[{$key}]"] = $customerSegment; } unset($data['customer_segment_ids']); } return parent::replaceMappingData($data); }