Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
20 | class OrderSetLocaleAction extends AbstractAction |
||
21 | { |
||
22 | use LocaleTrait; |
||
23 | |||
24 | 27 | public function fieldDefinitions() |
|
25 | { |
||
26 | return [ |
||
27 | 27 | 'action' => [static::TYPE => 'string'], |
|
28 | 27 | 'locale' => [static::TYPE => 'string'], |
|
29 | ]; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param string $locale |
||
34 | * @param Context|callable $context |
||
35 | * @return OrderSetLocaleAction |
||
36 | */ |
||
37 | 22 | public static function ofLocale($locale, $context = null) |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param array $data |
||
44 | * @param Context|callable $context |
||
45 | */ |
||
46 | 27 | public function __construct(array $data = [], $context = null) |
|
50 | 27 | } |
|
51 | } |
||
52 |