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