1 | <?php |
||
7 | class Inspector |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | protected $excludeScopes = ['scopeScope', 'scopeEloquentJs']; |
||
13 | |||
14 | /** |
||
15 | * Inspect a model class and return its metadata. |
||
16 | * |
||
17 | * @param AcceptsEloquentJsQueries $instance |
||
18 | * @return Metadata |
||
19 | */ |
||
20 | public function inspect(AcceptsEloquentJsQueries $instance) |
||
29 | |||
30 | /** |
||
31 | * Find the endpoint for this model. |
||
32 | * |
||
33 | * @param AcceptsEloquentJsQueries $instance |
||
34 | * @return string |
||
35 | */ |
||
36 | protected function findEndpoint(AcceptsEloquentJsQueries $instance) |
||
40 | |||
41 | /** |
||
42 | * Get any additional date columns for this model. |
||
43 | * |
||
44 | * @param AcceptsEloquentJsQueries $instance |
||
45 | * @return array |
||
46 | */ |
||
47 | protected function findDateColumns(AcceptsEloquentJsQueries $instance) |
||
53 | |||
54 | /** |
||
55 | * Get the scope methods for this model with 'scope' prefix removed. |
||
56 | * |
||
57 | * @param AcceptsEloquentJsQueries $instance |
||
58 | * @return array |
||
59 | */ |
||
60 | protected function findScopeMethods(AcceptsEloquentJsQueries $instance) |
||
76 | } |
||
77 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.