We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 12 | class GeneratePageRoutes extends Command |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var MenuRepository |
||
| 17 | */ |
||
| 18 | private $menus; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The name and signature of the console command. |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $signature = 'page.routes.generate'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * The console command description. |
||
| 29 | * |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | protected $description = 'Generate the page routes based on the linked menus.'; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Create a new command instance. |
||
| 36 | * |
||
| 37 | * @return void |
||
|
|
|||
| 38 | */ |
||
| 39 | public function __construct(MenuRepository $menus) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Execute the console command. |
||
| 48 | * |
||
| 49 | * @return mixed |
||
| 50 | */ |
||
| 51 | public function handle() |
||
| 63 | } |
||
| 64 |
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.