1 | <?php |
||
11 | class Repository implements RepositoryInterface |
||
12 | { |
||
13 | protected $app; |
||
14 | |||
15 | protected $model; |
||
16 | |||
17 | /** |
||
18 | * @var Model |
||
19 | */ |
||
20 | protected $class; |
||
21 | |||
22 | protected $with = []; |
||
23 | |||
24 | 3 | public function __construct(Application $app) |
|
28 | |||
29 | public function getModel() |
||
33 | |||
34 | /** |
||
35 | * @param \Illuminate\Database\Eloquent\Model $model |
||
36 | * |
||
37 | * @return $this |
||
38 | */ |
||
39 | 3 | public function setModel(Model $model) |
|
46 | |||
47 | /** |
||
48 | * @return string[] |
||
49 | */ |
||
50 | public function getWith() |
||
54 | |||
55 | public function with($relations) |
||
61 | |||
62 | public function getClass() |
||
66 | |||
67 | public function setClass($class) |
||
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | public function getQuery() |
||
90 | |||
91 | public function find($id) |
||
100 | |||
101 | public function findOrFail($id) |
||
110 | |||
111 | /** |
||
112 | * {@inheritdoc} |
||
113 | */ |
||
114 | public function findOnlyTrashed($id) |
||
118 | |||
119 | public function delete($id) |
||
123 | |||
124 | public function forceDelete($id) |
||
128 | |||
129 | public function restore($id) |
||
133 | |||
134 | public function isRestorable() |
||
138 | } |
||
139 |
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..