| 1 | <?php |
||
| 9 | class GalleryClearCommand extends Command |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * The name and signature of the console command. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $signature = 'gallery:clear'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The console command description. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $description = 'Remove all photos and albums'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Create a new command instance. |
||
| 28 | * |
||
| 29 | * @return void |
||
|
|
|||
| 30 | */ |
||
| 31 | public function __construct(AlbumAdapter $albums, PhotoAdapter $photos) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Execute the console command. |
||
| 40 | * |
||
| 41 | * @return mixed |
||
| 42 | */ |
||
| 43 | public function handle() |
||
| 62 | |||
| 63 | } |
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.