1 | <?php |
||
7 | trait BuildsCastQueries |
||
8 | { |
||
9 | /** |
||
10 | * Builds up the cast query. |
||
11 | * |
||
12 | * @param string $old |
||
13 | * @param string $query |
||
14 | * @param \Illuminate\Database\Eloquent\Model $model |
||
15 | * @param array &$transformed |
||
16 | * @return array |
||
17 | */ |
||
18 | protected function parse($old, $query, Model $model, &$transformed) |
||
33 | |||
34 | /** |
||
35 | * Adjusts the name of given field. |
||
36 | * |
||
37 | * @param string &$key |
||
38 | * @param string &$value |
||
39 | * @param \Illuminate\Database\Eloquent\Model $model |
||
40 | * @param string $newName |
||
41 | * @return void |
||
42 | */ |
||
43 | protected function name(&$key, &$value, Model $model, $newName) |
||
47 | |||
48 | /** |
||
49 | * Adjusts the data type of given field. |
||
50 | * |
||
51 | * @param string &$key |
||
52 | * @param string &$value |
||
53 | * @param \Illuminate\Database\Eloquent\Model $model |
||
54 | * @param string $type |
||
55 | * @return void |
||
56 | */ |
||
57 | protected function type(&$key, &$value, Model $model, $type) |
||
61 | } |
||
62 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.