| 1 | <?php |
||
| 10 | class MakeEntity extends Command |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Paths to files which should automatically be opened in IDE if the |
||
| 14 | * option --ide is set (and IDE capable). |
||
| 15 | * |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | public $filesToBeOpened = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The name of the entity being created. |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | public $entity; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * The migration schema object. |
||
| 29 | * |
||
| 30 | * @var MigrationSchema |
||
| 31 | */ |
||
| 32 | public $schema; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * The name and signature of the console command. |
||
| 36 | * |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | protected $signature = 'make:entity {entity} {--schema="name:string"} {--migrate} {--ide=}'; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * The console command description. |
||
| 43 | * |
||
| 44 | * @var string |
||
| 45 | */ |
||
| 46 | protected $description = 'Make Entity'; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Execute the console command. |
||
| 50 | * |
||
| 51 | * @return mixed |
||
| 52 | */ |
||
| 53 | public function handle() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Adds file to $filesToBeOpened stack. |
||
| 63 | * |
||
| 64 | * @param $file |
||
| 65 | * @return void |
||
| 66 | */ |
||
| 67 | public function addFile(SplFileInfo $file): void |
||
| 71 | } |
||
| 72 |