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.

Parameters

ReflectionProvider $reflectionProvider
ModelScopeMethodResolver $scopeMethods

at line 42
bool hasMethod(ClassReflection $classReflection, string $methodName)

Determine whether the receiver exposes the named scope.

Parameters

ClassReflection $classReflection
string $methodName

Return Value

bool

at line 50
MethodReflection getMethod(ClassReflection $classReflection, string $methodName)

Return the named scope method.

Parameters

ClassReflection $classReflection
string $methodName

Return Value

MethodReflection