1 | <?php |
||
8 | class ScanViewsForFeaturesCommand extends Command |
||
9 | { |
||
10 | /** |
||
11 | * The name and signature of the console command. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $signature = 'feature:scan'; |
||
16 | |||
17 | /** |
||
18 | * The console command description. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $description = 'Scan project views to find new features.'; |
||
23 | |||
24 | /** |
||
25 | * @var FeaturesViewScanner |
||
26 | */ |
||
27 | private $service; |
||
28 | |||
29 | |||
30 | /** |
||
31 | * Create a new command instance. |
||
32 | * |
||
33 | * @return void |
||
|
|||
34 | */ |
||
35 | public function __construct() |
||
41 | |||
42 | /** |
||
43 | * Execute the console command. |
||
44 | * |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function handle() |
||
74 | } |
||
75 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.