Example #1
0
 /**
  * @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;
 }
Example #2
0
 /**
  * @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);
 }
Example #3
0
 /**
  * Constructor
  *
  * @constructor
  * @param Config $configuration
  * @param FixtureFactory $fixtureFactory
  */
 public function __construct(Config $configuration, FixtureFactory $fixtureFactory)
 {
     parent::__construct($configuration);
     $this->fixtureFactory = $fixtureFactory;
 }
Example #4
0
 /**
  * @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;
 }
Example #5
0
 /**
  * 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);
 }