Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class StoreAddSupplyChannelAction extends AbstractAction |
||
20 | { |
||
21 | public function fieldDefinitions() |
||
22 | { |
||
23 | return [ |
||
24 | 'action' => [static::TYPE => 'string'], |
||
25 | 'supplyChannel' => [static::TYPE => ChannelReference::class], |
||
26 | ]; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param array $data |
||
31 | * @param Context|callable $context |
||
32 | */ |
||
33 | public function __construct(array $data = [], $context = null) |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param ChannelReference $supplyChannel |
||
41 | * @param Context|callable $context |
||
42 | * @return StoreAddSupplyChannelAction |
||
43 | */ |
||
44 | public static function ofSupplyChannel(ChannelReference $supplyChannel, $context = null) |
||
49 |