| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class ServicesGenerator extends BaseGenerator |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The name and signature of the console command. |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $signature = 'make:services {name}'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The console command description. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $description = 'Create a services file'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Execute the console command. |
||
| 23 | * |
||
| 24 | * @return mixed |
||
| 25 | */ |
||
| 26 | public function handle() |
||
| 27 | { |
||
| 28 | $targetName = $this->getTargetName(); |
||
| 29 | |||
| 30 | $this->info("Create services: $targetName"); |
||
| 31 | $this->generateService($targetName); |
||
| 32 | } |
||
| 33 | |||
| 34 | protected function generateService($name) |
||
| 38 | } |
||
| 39 | } |
||
| 40 |