| Total Complexity | 2 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class TranslationModel extends Eloquent |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Translation model does not include timestamps by default. |
||
| 12 | * |
||
| 13 | * @var bool |
||
| 14 | */ |
||
| 15 | public $timestamps = false; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Name of the table (will be set dynamically). |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $table = null; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Indicates if the IDs are auto-incrementing. |
||
| 26 | * |
||
| 27 | * @var bool |
||
| 28 | */ |
||
| 29 | public $incrementing = false; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Locale key name. |
||
| 33 | * |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | protected $localeKey = 'locale'; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Set the keys for a save update query. |
||
| 40 | * |
||
| 41 | * @param EloquentBuilder $query |
||
| 42 | * |
||
| 43 | * @return EloquentBuilder |
||
| 44 | */ |
||
| 45 | protected function setKeysForSaveQuery(EloquentBuilder $query) |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Set the locale key. |
||
| 55 | * |
||
| 56 | * @param $localeKey |
||
| 57 | * |
||
| 58 | * @return $this |
||
| 59 | */ |
||
| 60 | public function setLocaleKey($localeKey) |
||
| 67 |