NamedScopeMethodReflection
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
Create a named scope method reflection.
Return the exposed scope name.
Return the declaring class.
Determine whether the exposed scope is static.
Determine whether the exposed scope is private.
Determine whether the exposed scope is public.
Return no docblock for the synthesized signature.
Return the method prototype.
Return scope variants without the engine-supplied builder parameter.
Determine whether the method is deprecated.
Return the deprecation description.
Determine whether the method is final.
Determine whether the method is internal.
Return the declared throw type.
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.
at line 45
string
getName()
Return the exposed scope name.
at line 53
ClassReflection
getDeclaringClass()
Return the declaring class.
at line 61
bool
isStatic()
Determine whether the exposed scope is static.
at line 69
bool
isPrivate()
Determine whether the exposed scope is private.
at line 77
bool
isPublic()
Determine whether the exposed scope is public.
at line 85
string|null
getDocComment()
Return no docblock for the synthesized signature.
at line 93
ClassMemberReflection
getPrototype()
Return the method prototype.
at line 103
array
getVariants()
Return scope variants without the engine-supplied builder parameter.
at line 127
TrinaryLogic
isDeprecated()
Determine whether the method is deprecated.
at line 135
string|null
getDeprecatedDescription()
Return the deprecation description.
at line 143
TrinaryLogic
isFinal()
Determine whether the method is final.
at line 151
TrinaryLogic
isInternal()
Determine whether the method is internal.
at line 159
Type|null
getThrowType()
Return the declared throw type.
at line 167
TrinaryLogic
hasSideEffects()
Determine whether the method has side effects.