| Total Complexity | 7 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Uninstall extends Command |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The name and signature of the console command. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $signature = 'babel:uninstall {extension : The package name of the extension}'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The console command description. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $description = 'Uninstall a given Babel Extension to NOJ'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Create a new command instance. |
||
| 26 | * |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | public function __construct() |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Execute the console command. |
||
| 36 | * |
||
| 37 | * @return mixed |
||
| 38 | */ |
||
| 39 | public function handle() |
||
| 40 | { |
||
| 41 | $extension = $this->argument('extension'); |
||
| 42 | $submitter=self::create($extension,$this); |
||
| 43 | if(!is_null($submitter)) $submitter->uninstall(); |
||
| 44 | else throw new Exception("Uninstaller Not Provided"); |
||
| 45 | } |
||
| 46 | |||
| 47 | public static function create($oj,$class) { |
||
| 60 | } |
||
| 61 | } |
||
| 63 |