| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 16 | class StoreSetLanguagesAction extends AbstractAction |
||
| 17 | { |
||
| 18 | 4 | public function fieldDefinitions() |
|
| 19 | { |
||
| 20 | return [ |
||
| 21 | 4 | 'action' => [static::TYPE => 'string'], |
|
| 22 | 4 | 'languages' => [static::TYPE => 'array'], |
|
| 23 | ]; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param array $data |
||
| 28 | * @param Context|callable $context |
||
| 29 | */ |
||
| 30 | 4 | public function __construct(array $data = [], $context = null) |
|
| 31 | { |
||
| 32 | 4 | parent::__construct($data, $context); |
|
| 33 | 4 | $this->setAction('setLanguages'); |
|
| 34 | 4 | } |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param array $languages |
||
| 38 | * @param Context|callable $context |
||
| 39 | * @return StoreSetLanguagesAction |
||
| 40 | */ |
||
| 41 | 2 | public static function ofLanguages(array $languages, $context = null) |
|
| 44 | } |
||
| 45 | } |
||
| 46 |