| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Version extends Command implements PromptsForMissingInput |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The name and signature of the console command. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $signature = 'version'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The console command description. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $description = 'Display the application version'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Execute the console command. |
||
| 26 | */ |
||
| 27 | public function handle(): int |
||
| 28 | { |
||
| 29 | $this->info('v'.self::get()); |
||
| 30 | |||
| 31 | return self::SUCCESS; |
||
| 32 | } |
||
| 33 | |||
| 34 | public static function get(): string |
||
| 37 | } |
||
| 38 | } |
||
| 39 |