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