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