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 32
__construct(ClassReflection $declaringClass, ClassReflection $modelClass, MethodReflection $scopeMethod, string $methodName, Type $receiverType, Type $queryType, bool $static)
Create a named scope method reflection.
at line 46
string
getName()
Return the exposed scope name.
at line 54
ClassReflection
getDeclaringClass()
Return the declaring class.
at line 62
bool
isStatic()
Determine whether the exposed scope is static.
at line 70
bool
isPrivate()
Determine whether the exposed scope is private.
at line 78
bool
isPublic()
Determine whether the exposed scope is public.
at line 86
string|null
getDocComment()
Return no docblock for the synthesized signature.
at line 94
ClassMemberReflection
getPrototype()
Return the method prototype.
at line 104
array
getVariants()
Return scope variants without the engine-supplied builder parameter.
at line 128
TrinaryLogic
isDeprecated()
Determine whether the method is deprecated.
at line 136
string|null
getDeprecatedDescription()
Return the deprecation description.
at line 144
TrinaryLogic
isFinal()
Determine whether the method is final.
at line 152
TrinaryLogic
isInternal()
Determine whether the method is internal.
at line 160
Type|null
getThrowType()
Return the declared throw type.
at line 168
TrinaryLogic
hasSideEffects()
Determine whether the method has side effects.