1 | <?php |
||
11 | class RouteTranslationsListCommand extends RouteListCommand |
||
12 | { |
||
13 | use TranslatedRouteCommandContext; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $name = 'route:trans:list'; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $description = 'List all registered routes for specific locales'; |
||
24 | |||
25 | |||
26 | /** |
||
27 | * Execute the console command. |
||
28 | */ |
||
29 | public function handle() |
||
47 | |||
48 | /** |
||
49 | * Boot a fresh copy of the application and get the routes. |
||
50 | * |
||
51 | * @param string $locale |
||
52 | * @return \Illuminate\Routing\RouteCollection |
||
53 | */ |
||
54 | protected function getFreshApplicationRoutes($locale) |
||
68 | |||
69 | /** |
||
70 | * Get the console command arguments. |
||
71 | * |
||
72 | * @return array |
||
73 | */ |
||
74 | protected function getArguments() |
||
80 | } |
||
81 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.