| Total Complexity | 4 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class Model extends IlluminateModel |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The primary key for the model. |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $primaryKey = '_key'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The primary key type. |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $keyType = 'string'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @override |
||
| 26 | * Create a new Eloquent query builder for the model. |
||
| 27 | * |
||
| 28 | * @param QueryBuilder $query |
||
| 29 | * @return Builder |
||
| 30 | */ |
||
| 31 | public function newEloquentBuilder($query) |
||
| 32 | { |
||
| 33 | return new Builder($query); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Get a new query builder instance for the connection. |
||
| 38 | * |
||
| 39 | * @return \Illuminate\Database\Query\Builder |
||
| 40 | */ |
||
| 41 | protected function newBaseQueryBuilder() |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Qualify the given column name by the model's table. |
||
| 48 | * |
||
| 49 | * @param string $column |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public function qualifyColumn($column) |
||
| 63 |