class NamedScopeMethodReflection implements MethodReflection

Describe a model scope as invoked through an Eloquent receiver.

Relation scopes run on the relation's query but return the relation when the result is that query, matching ForwardsCalls::forwardDecoratedCallTo().

Methods

__construct(ClassReflection $declaringClass, ClassReflection $modelClass, MethodReflection $scopeMethod, string $methodName, Type $receiverType, Type $queryType, bool $static)

Create a named scope method reflection.

string
getName()

Return the exposed scope name.

ClassReflection
getDeclaringClass()

Return the declaring class.

bool
isStatic()

Determine whether the exposed scope is static.

bool
isPrivate()

Determine whether the exposed scope is private.

bool
isPublic()

Determine whether the exposed scope is public.

string|null
getDocComment()

Return no docblock for the synthesized signature.

ClassMemberReflection
getPrototype()

Return the method prototype.

array
getVariants()

Return scope variants without the engine-supplied builder parameter.

TrinaryLogic
isDeprecated()

Determine whether the method is deprecated.

string|null
getDeprecatedDescription()

Return the deprecation description.

TrinaryLogic
isFinal()

Determine whether the method is final.

TrinaryLogic
isInternal()

Determine whether the method is internal.

Type|null
getThrowType()

Return the declared throw type.

TrinaryLogic
hasSideEffects()

Determine whether the method has side effects.

Details

at line 31
__construct(ClassReflection $declaringClass, ClassReflection $modelClass, MethodReflection $scopeMethod, string $methodName, Type $receiverType, Type $queryType, bool $static)

Create a named scope method reflection.

Parameters

ClassReflection $declaringClass
ClassReflection $modelClass
MethodReflection $scopeMethod
string $methodName
Type $receiverType
Type $queryType
bool $static

at line 45
string getName()

Return the exposed scope name.

Return Value

string

at line 53
ClassReflection getDeclaringClass()

Return the declaring class.

Return Value

ClassReflection

at line 61
bool isStatic()

Determine whether the exposed scope is static.

Return Value

bool

at line 69
bool isPrivate()

Determine whether the exposed scope is private.

Return Value

bool

at line 77
bool isPublic()

Determine whether the exposed scope is public.

Return Value

bool

at line 85
string|null getDocComment()

Return no docblock for the synthesized signature.

Return Value

string|null

at line 93
ClassMemberReflection getPrototype()

Return the method prototype.

Return Value

ClassMemberReflection

at line 103
array getVariants()

Return scope variants without the engine-supplied builder parameter.

Return Value

array

at line 127
TrinaryLogic isDeprecated()

Determine whether the method is deprecated.

Return Value

TrinaryLogic

at line 135
string|null getDeprecatedDescription()

Return the deprecation description.

Return Value

string|null

at line 143
TrinaryLogic isFinal()

Determine whether the method is final.

Return Value

TrinaryLogic

at line 151
TrinaryLogic isInternal()

Determine whether the method is internal.

Return Value

TrinaryLogic

at line 159
Type|null getThrowType()

Return the declared throw type.

Return Value

Type|null

at line 167
TrinaryLogic hasSideEffects()

Determine whether the method has side effects.

Return Value

TrinaryLogic