class DynamicRelationMethodReflection implements MethodReflection

Describe a relation method that a __call() handles without arguments, such as a relation that resolveRelationUsing() registers or a model's through{Relation}().

Methods

__construct(ClassReflection $declaringClass, string $methodName, Type $returnType, bool $isStatic)

Create a dynamic relation method reflection.

ClassReflection
getDeclaringClass()

Return the declaring class.

bool
isStatic()

Determine whether the method is static.

bool
isPrivate()

Determine whether the method is private.

bool
isPublic()

Determine whether the method is public.

string
getName()

Return the method name.

ClassMemberReflection
getPrototype()

Return the method prototype.

array
getVariants()

Return the method's single variant, which takes no arguments.

string|null
getDocComment()

Return no docblock for the synthesized signature.

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 24
__construct(ClassReflection $declaringClass, string $methodName, Type $returnType, bool $isStatic)

Create a dynamic relation method reflection.

Parameters

ClassReflection $declaringClass
string $methodName
Type $returnType
bool $isStatic

at line 35
ClassReflection getDeclaringClass()

Return the declaring class.

Return Value

ClassReflection

at line 43
bool isStatic()

Determine whether the method is static.

Return Value

bool

at line 51
bool isPrivate()

Determine whether the method is private.

Return Value

bool

at line 59
bool isPublic()

Determine whether the method is public.

Return Value

bool

at line 67
string getName()

Return the method name.

Return Value

string

at line 75
ClassMemberReflection getPrototype()

Return the method prototype.

Return Value

ClassMemberReflection

at line 85
array getVariants()

Return the method's single variant, which takes no arguments.

Return Value

array

at line 101
string|null getDocComment()

Return no docblock for the synthesized signature.

Return Value

string|null

at line 109
TrinaryLogic isDeprecated()

Determine whether the method is deprecated.

Return Value

TrinaryLogic

at line 117
string|null getDeprecatedDescription()

Return the deprecation description.

Return Value

string|null

at line 125
TrinaryLogic isFinal()

Determine whether the method is final.

Return Value

TrinaryLogic

at line 133
TrinaryLogic isInternal()

Determine whether the method is internal.

Return Value

TrinaryLogic

at line 141
Type|null getThrowType()

Return the declared throw type.

Return Value

Type|null

at line 149
TrinaryLogic hasSideEffects()

Determine whether the method has side effects.

Return Value

TrinaryLogic