| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | trait AutoTranslatesInstances |
||
| 8 | { |
||
| 9 | /** @var Translator */ |
||
| 10 | protected $translator; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @return Translator |
||
| 14 | */ |
||
| 15 | public function translator() |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param $translator |
||
| 26 | * @return $this |
||
| 27 | */ |
||
| 28 | public function setTranslator($translator) |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return \Illuminate\Foundation\Application|mixed |
||
| 37 | */ |
||
| 38 | protected function translatableModule() |
||
| 43 |