NamedScopeMethodExtension
class NamedScopeMethodExtension implements MethodsClassReflectionExtension
Describe model scopes exposed through models, builders, and relations.
Methods
__construct(ReflectionProvider $reflectionProvider, ModelScopeMethodResolver $scopeMethods)
Create a named scope method extension.
bool
hasMethod(ClassReflection $classReflection, string $methodName)
Determine whether the receiver exposes the named scope.
MethodReflection
getMethod(ClassReflection $classReflection, string $methodName)
Return the named scope method.
Details
at line 32
__construct(ReflectionProvider $reflectionProvider, ModelScopeMethodResolver $scopeMethods)
Create a named scope method extension.
at line 42
bool
hasMethod(ClassReflection $classReflection, string $methodName)
Determine whether the receiver exposes the named scope.
at line 50
MethodReflection
getMethod(ClassReflection $classReflection, string $methodName)
Return the named scope method.