Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class ListCommand extends Command |
||
14 | { |
||
15 | protected const COMMAND_NAME = 'adminresource:list'; |
||
16 | protected const COMMAND_DESCRIPTION = 'List available admin resources'; |
||
17 | |||
18 | protected AdminResourceRepo $adminResourceRepo; |
||
19 | |||
20 | /** |
||
21 | * ListCommand constructor. |
||
22 | * |
||
23 | * @param AdminResourceRepo $adminResourceRepo |
||
24 | */ |
||
25 | public function __construct(AdminResourceRepo $adminResourceRepo) |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | protected function define() |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | * @throws OrmException |
||
43 | */ |
||
44 | protected function doExecute(IResponse $response) |
||
54 |