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