1 | <?php |
||
9 | class CreateGroup extends Command |
||
10 | { |
||
11 | /** |
||
12 | * The console command name. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $name = 'notifynder:create:group'; |
||
17 | |||
18 | /** |
||
19 | * The console command description. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $description = 'Store a new notifynder group in the DB.'; |
||
24 | |||
25 | /** |
||
26 | * @var NotifynderGroup |
||
27 | */ |
||
28 | private $notifynderGroup; |
||
29 | |||
30 | /** |
||
31 | * Create a new command instance. |
||
32 | * |
||
33 | * @param NotifynderGroup $notifynderGroup |
||
34 | * @return \Fenos\Notifynder\Artisan\CreateGroup |
||
|
|||
35 | */ |
||
36 | public function __construct(NotifynderGroup $notifynderGroup) |
||
41 | |||
42 | /** |
||
43 | * Execute the console command. |
||
44 | * |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function fire() |
||
58 | |||
59 | /** |
||
60 | * Get the console command arguments. |
||
61 | * |
||
62 | * @return array |
||
63 | */ |
||
64 | protected function getArguments() |
||
70 | } |
||
71 |
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.