| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function getCommands(Site $site) |
||
| 13 | { |
||
| 14 | // Install definition |
||
| 15 | $install = new CommandManager('package:install'); |
||
| 16 | $install->add('handle', [ |
||
| 17 | 'handle' => [ |
||
| 18 | 'required' => true, |
||
| 19 | 'castTo' => 'string', |
||
| 20 | 'description' => 'The package handle to install' |
||
| 21 | ] |
||
| 22 | ]); |
||
| 23 | |||
| 24 | // Uninstall definition |
||
| 25 | $uninstall = new CommandManager('package:uninstall'); |
||
| 26 | $uninstall->add('handle', [ |
||
| 27 | 'handle' => [ |
||
| 28 | 'required' => true, |
||
| 29 | 'castTo' => 'string', |
||
| 30 | 'description' => 'The package handle to uninstall' |
||
| 31 | ] |
||
| 32 | ]); |
||
| 33 | |||
| 34 | return [$install, $uninstall]; |
||
| 35 | } |
||
| 36 | |||
| 61 |