1 | <?php |
||
5 | trait TranslatedRouteCommandContext |
||
6 | { |
||
7 | /** |
||
8 | * Returns whether a given locale is supported. |
||
9 | * |
||
10 | * @param string $locale |
||
11 | * @return bool |
||
12 | */ |
||
13 | protected function isSupportedLocale($locale) |
||
17 | |||
18 | /** |
||
19 | * @return string[] |
||
20 | */ |
||
21 | protected function getSupportedLocales() |
||
25 | |||
26 | /** |
||
27 | * @return \Mcamara\LaravelLocalization\LaravelLocalization |
||
28 | */ |
||
29 | protected function getLaravelLocalization() |
||
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | protected function getBootstrapPath() |
||
45 | |||
46 | /** |
||
47 | * @param string $locale |
||
48 | * @return string |
||
49 | */ |
||
50 | protected function makeLocaleRoutesPath($locale = '') |
||
60 | } |
||
61 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: