1 | <?php |
||
13 | class Repository implements RepositoryInterface, WithModel |
||
14 | { |
||
15 | protected $app; |
||
16 | |||
17 | protected $model; |
||
18 | |||
19 | /** |
||
20 | * @var Model |
||
21 | */ |
||
22 | protected $class; |
||
23 | |||
24 | protected $with = []; |
||
25 | |||
26 | protected $globalScopes = []; |
||
27 | |||
28 | public function __construct(Application $app) |
||
32 | |||
33 | public function getModel() |
||
37 | |||
38 | public function setModel(Model $model) |
||
45 | |||
46 | /** |
||
47 | * @return string[] |
||
48 | */ |
||
49 | public function getWith() |
||
53 | |||
54 | public function with($relations) |
||
60 | |||
61 | public function getClass() |
||
65 | |||
66 | public function setClass($class) |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | public function getQuery() |
||
92 | |||
93 | public function addGlobalScope($scopes) |
||
97 | |||
98 | public function getGlobalScopes() |
||
102 | |||
103 | public function find($id) |
||
112 | |||
113 | public function findOrFail($id) |
||
122 | |||
123 | /** |
||
124 | * {@inheritdoc} |
||
125 | */ |
||
126 | public function findOnlyTrashed($id) |
||
130 | |||
131 | /*public function store() |
||
132 | { |
||
133 | } |
||
134 | |||
135 | public function update() |
||
136 | { |
||
137 | }*/ |
||
138 | |||
139 | |||
140 | public function forceDelete($id) |
||
144 | |||
145 | public function restore($id) |
||
149 | |||
150 | |||
151 | public function isRestorable() |
||
155 | } |
||
156 |
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..