/** * @constructor * @param Config $configuration */ public function __construct(Config $configuration) { parent::__construct($configuration); $this->mappingData += ['links_purchased_separately' => ['Yes' => 1, 'No' => 0], 'is_shareable' => ['Yes' => 1, 'No' => 0, 'Use config' => 2]]; }
/** * @constructor * @param DataInterface $configuration * @param EventManagerInterface $eventManager */ public function __construct(DataInterface $configuration, EventManagerInterface $eventManager) { parent::__construct($configuration, $eventManager); $this->mappingData += ['selection_can_change_qty' => ['Yes' => 1, 'No' => 0], 'sku_type' => ['Dynamic' => 0, 'Fixed' => 1], 'price_type' => ['Dynamic' => 0, 'Fixed' => 1], 'weight_type' => ['Dynamic' => 0, 'Fixed' => 1], 'shipment_type' => ['Together' => 0, 'Separately' => 1], 'type' => ['Drop-down' => 'select', 'Radio Buttons' => 'radio', 'Checkbox' => 'checkbox', 'Multiple Select' => 'multi'], 'selection_price_type' => ['Fixed' => 0, 'Percent' => 1]]; }
/** * @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; $this->mappingData += ['include' => ['Yes' => 1, 'No' => 0]]; }
/** * @constructor * @param DataInterface $configuration * @param EventManagerInterface $eventManager */ public function __construct(DataInterface $configuration, EventManagerInterface $eventManager) { parent::__construct($configuration, $eventManager); $this->mappingData += ['links_purchased_separately' => ['Yes' => 1, 'No' => 0], 'is_shareable' => ['Yes' => 1, 'No' => 0, 'Use config' => 2]]; }
/** * @constructor * @param Config $configuration * @param FixtureFactory $fixtureFactory */ public function __construct(Config $configuration, FixtureFactory $fixtureFactory) { parent::__construct($configuration); $this->fixtureFactory = $fixtureFactory; $this->mappingData += ['include' => ['Yes' => 1, 'No' => 0]]; }