1 | <?php namespace Mascame\Artificer\Controllers; |
||
11 | class BaseModelController extends BaseController |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * The Eloquent model instance |
||
16 | * @var \Eloquent |
||
17 | */ |
||
18 | protected $model; |
||
19 | |||
20 | /** |
||
21 | * |
||
22 | */ |
||
23 | public function __construct() |
||
29 | |||
30 | /** |
||
31 | * @param $data |
||
32 | */ |
||
33 | protected function handleData($data) |
||
41 | |||
42 | /** |
||
43 | * @param $data |
||
44 | * @return null |
||
45 | */ |
||
46 | protected function getFields($data) |
||
72 | |||
73 | /** |
||
74 | * @return array |
||
75 | */ |
||
76 | protected function getSort() |
||
83 | |||
84 | /** |
||
85 | * @param $items |
||
86 | * @return null |
||
87 | */ |
||
88 | public static function getCurrentModelId($items) |
||
92 | |||
93 | /** |
||
94 | * @param $modelName |
||
95 | * @param null $data |
||
96 | * @param $sort |
||
97 | */ |
||
98 | protected function all($modelName, $data = null, $sort) |
||
106 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..