| Total Complexity | 2 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class GenerateSchemaCommand extends Command |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * The name and signature of the console command. |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $signature = 'lighthouse-utils:generate-schema'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The console command description. |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $description = 'Generates a new schema from seperate files and validate the generated schema.'; |
||
| 26 | |||
| 27 | /** @var SchemaGenerator */ |
||
| 28 | private $schemaGenerator; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param SchemaGenerator $schemaGenerator |
||
| 32 | */ |
||
| 33 | public function __construct(SchemaGenerator $schemaGenerator) |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Execute the console command. |
||
| 41 | * |
||
| 42 | * @throws \Exception |
||
| 43 | */ |
||
| 44 | public function handle() |
||
| 68 |