| 1 | <?php |
||
| 7 | trait QueryBuilder |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Get a new query builder for the model. |
||
| 11 | * |
||
| 12 | * @return BuildsQueries |
||
| 13 | */ |
||
| 14 | abstract public function newQuery(); |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Create a new query builder instance for this model type. |
||
| 18 | * |
||
| 19 | * @return BuildsQueries |
||
| 20 | */ |
||
| 21 | public static function query() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Handle dynamic static method calls on the model class. |
||
| 28 | * |
||
| 29 | * Proxies calls to direct method calls on a new instance |
||
| 30 | * |
||
| 31 | * @param string $method |
||
| 32 | * @param array $arguments |
||
| 33 | * |
||
| 34 | * @return mixed |
||
| 35 | */ |
||
| 36 | public static function __callStatic($method, array $arguments) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Handle dynamic method calls into the model. |
||
| 43 | * |
||
| 44 | * @param string $method |
||
| 45 | * @param array $arguments |
||
| 46 | * |
||
| 47 | * @return mixed |
||
| 48 | */ |
||
| 49 | public function __call($method, $arguments) |
||
| 55 | } |
||
| 56 |