| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class StoreSetDistributionChannelsAction extends AbstractAction |
||
| 17 | { |
||
| 18 | public function fieldDefinitions() |
||
| 19 | { |
||
| 20 | return [ |
||
| 21 | 'action' => [static::TYPE => 'string'], |
||
| 22 | 'distributionChannels' => [static::TYPE => 'array'], |
||
| 23 | ]; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param array $data |
||
| 28 | * @param Context|callable $context |
||
| 29 | */ |
||
| 30 | public function __construct(array $data = [], $context = null) |
||
| 31 | { |
||
| 32 | parent::__construct($data, $context); |
||
| 33 | $this->setAction('setDistributionChannels'); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param array $distributionChannels |
||
| 38 | * @param Context|callable $context |
||
| 39 | * @return StoreSetDistributionChannelsAction |
||
| 40 | */ |
||
| 41 | public static function ofDistributionChannels(array $distributionChannels, $context = null) |
||
| 44 | } |
||
| 45 | } |
||
| 46 |