| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class ListCommand extends Command |
||
| 13 | { |
||
| 14 | public const COMMAND_NAME = 'userlanguage:list'; |
||
| 15 | public const COMMAND_DESCRIPTION = 'List available user languages'; |
||
| 16 | |||
| 17 | protected UserLanguageRepo $userLanguageRepo; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * ListCommand constructor. |
||
| 21 | * |
||
| 22 | * @param UserLanguageRepo $userLanguageRepo |
||
| 23 | */ |
||
| 24 | public function __construct(UserLanguageRepo $userLanguageRepo) |
||
| 25 | { |
||
| 26 | $this->userLanguageRepo = $userLanguageRepo; |
||
| 27 | |||
| 28 | parent::__construct(); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritdoc |
||
| 33 | */ |
||
| 34 | protected function define() |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @inheritdoc |
||
| 41 | */ |
||
| 42 | protected function doExecute(IResponse $response) |
||
| 49 | } |
||
| 50 | } |
||
| 52 |