1 | <?php |
||
14 | trait LoadsTranslatedCachedRoutes |
||
15 | { |
||
16 | /** |
||
17 | * Load the cached routes for the application. |
||
18 | * |
||
19 | * @return void |
||
20 | */ |
||
21 | protected function loadCachedRoutes() |
||
49 | |||
50 | /** |
||
51 | * Returns the path to the cached routes file for a given locale. |
||
52 | * |
||
53 | * @param string $locale |
||
54 | * @param string[] $localeKeys |
||
55 | * @return string |
||
56 | */ |
||
57 | protected function makeLocaleRoutesPath($locale, $localeKeys) |
||
68 | |||
69 | /** |
||
70 | * Returns the path to the standard cached routes file. |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | protected function getDefaultCachedRoutePath() |
||
78 | |||
79 | /** |
||
80 | * @return \Mcamara\LaravelLocalization\LaravelLocalization |
||
81 | */ |
||
82 | protected function getLaravelLocalization() |
||
86 | } |
||
87 |
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: