| 1 | <?php |
||
| 16 | class Youtube extends Command |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The name and signature of the console command. |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $signature = 'youtube:import {keyword}'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The console command description. |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $description = 'Youtube import videos on Mongo'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Create a new command instance. |
||
| 33 | * @return void |
||
|
|
|||
| 34 | */ |
||
| 35 | public function __construct() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Execute the console command. |
||
| 42 | * |
||
| 43 | * @return mixed |
||
| 44 | */ |
||
| 45 | public function handle() |
||
| 85 | } |
||
| 86 |
Adding a
@returnannotation 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.