| 1 | <?php |
||
| 7 | class RevertModelEvent extends Command |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The name and signature of the console command. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $signature = 'model:revert {--i|id=}'; |
||
| 15 | /** |
||
| 16 | * The console command description. |
||
| 17 | * |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $description = 'Revert specific Model Event by specifying the Log ID'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Create a new command instance. |
||
| 24 | * |
||
| 25 | * @return void |
||
|
|
|||
| 26 | */ |
||
| 27 | 3 | public function __construct() |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Execute the console command. |
||
| 34 | * |
||
| 35 | * @return void |
||
| 36 | */ |
||
| 37 | 2 | public function handle() |
|
| 55 | } |
||
| 56 |
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.