Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
22 | final class ResourceScopeMethodExtension extends ModelScopeMethodExtension |
||
23 | { |
||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | protected function searchIn(ClassReflection $classReflection): array |
||
28 | { |
||
29 | return collect(get_declared_classes()) |
||
30 | ->filter( |
||
31 | function ($item) { |
||
32 | return (new ReflectionClass($item))->isSubclassOf(Model::class); |
||
33 | } |
||
34 | ) |
||
35 | ->toArray(); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Returns the class under analyse. |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | protected function subject(): string |
||
46 | } |
||
47 | } |
||
48 |