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