Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 75% |
Changes | 0 |
1 | <?php |
||
20 | class CartSetCustomerGroupAction extends AbstractAction |
||
21 | { |
||
22 | 3 | public function fieldDefinitions() |
|
23 | { |
||
24 | return [ |
||
25 | 3 | 'action' => [static::TYPE => 'string'], |
|
26 | 3 | 'customerGroup' => [static::TYPE => CustomerGroupReference::class], |
|
27 | ]; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param CustomerGroupReference $customerGroup |
||
32 | * @param Context|callable $context |
||
33 | * @return CartSetCustomerGroupAction |
||
34 | */ |
||
35 | public static function ofCustomerGroup($customerGroup, $context = null) |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param array $data |
||
42 | * @param Context|callable $context |
||
43 | */ |
||
44 | 3 | public function __construct(array $data = [], $context = null) |
|
48 | 3 | } |
|
49 | } |
||
50 |