| 1 | <?php |
||
| 9 | class NovaTranslation |
||
| 10 | { |
||
| 11 | const LOCALES_CACHE_KEY = 'nova-translation-locales'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Forget caches locales. |
||
| 15 | * |
||
| 16 | * @return void |
||
| 17 | */ |
||
| 18 | public static function forgetLocales(): void |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return \BBSLab\NovaTranslation\Models\Locale |
||
| 25 | * |
||
| 26 | * @throws \Exception |
||
| 27 | */ |
||
| 28 | public static function currentLocale(): Locale |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return \Illuminate\Support\Collection |
||
| 41 | */ |
||
| 42 | public static function locales(): Collection |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param \BBSLab\NovaTranslation\Models\Locale|null $current |
||
| 53 | * @return \Illuminate\Support\Collection |
||
| 54 | * @throws \Exception |
||
| 55 | */ |
||
| 56 | public static function otherLocales(?Locale $current = null): Collection |
||
| 64 | |||
| 65 | public static function translatableModels(): array |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @return string |
||
| 72 | */ |
||
| 73 | public static function localeSessionKey(): string |
||
| 77 | } |
||
| 78 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.