| 1 | <?php |
||
| 5 | trait Translatable |
||
| 6 | { |
||
| 7 | protected $currentLocale; |
||
| 8 | protected $translatable = false; |
||
| 9 | protected $locales = []; |
||
| 10 | |||
| 11 | 3 | public function translatable(bool $translatable = true) |
|
| 17 | |||
| 18 | 6 | public function isTranslatable() |
|
| 22 | |||
| 23 | 3 | public function locales(array $locales) |
|
| 29 | |||
| 30 | 3 | public function getLocales() |
|
| 34 | |||
| 35 | 3 | public function setCurrentLocale($locale) |
|
| 39 | |||
| 40 | 3 | public function isCurrentLocale($locale) |
|
| 44 | |||
| 45 | 3 | public function getCurrentLocale() |
|
| 49 | } |
||
| 50 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.