class ForwardedModelMethodReflection extends ForwardedMethodReflection

Describe a method an Eloquent model's call() or callStatic() handles, which is callable both ways.

Methods

__construct(ClassReflection $declaringClass, MethodReflection $forwardedMethod, Type|null $returnType = null)

Create a forwarded model method reflection.

string
getName()

Return the method name.

ClassReflection
getDeclaringClass()

Return the declaring class.

MethodReflection
getForwardedMethod()

Return the method of the object that handles the call.

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|null
getDocComment()

Return the method docblock.

ClassMemberReflection
getPrototype()

Return the method prototype.

array
getVariants()

Return the builder method's variants, with the instance call's result when it differs.

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 26
__construct(ClassReflection $declaringClass, MethodReflection $forwardedMethod, Type|null $returnType = null)

Create a forwarded model method reflection.

Parameters

ClassReflection $declaringClass
MethodReflection $forwardedMethod
Type|null $returnType

replaces the builder method's declared result with what the instance call returns

string getName()

Return the method name.

Return Value

string

ClassReflection getDeclaringClass()

Return the declaring class.

Return Value

ClassReflection

MethodReflection getForwardedMethod()

Return the method of the object that handles the call.

Return Value

MethodReflection

at line 61
bool isStatic()

Determine whether the method is static.

Return Value

bool

at line 69
bool isPrivate()

Determine whether the method is private.

Return Value

bool

at line 77
bool isPublic()

Determine whether the method is public.

Return Value

bool

string|null getDocComment()

Return the method docblock.

Return Value

string|null

ClassMemberReflection getPrototype()

Return the method prototype.

Return Value

ClassMemberReflection

at line 39
array getVariants()

Return the builder method's variants, with the instance call's result when it differs.

Return Value

array

TrinaryLogic isDeprecated()

Determine whether the method is deprecated.

Return Value

TrinaryLogic

string|null getDeprecatedDescription()

Return the deprecation description.

Return Value

string|null

TrinaryLogic isFinal()

Determine whether the method is final.

Return Value

TrinaryLogic

TrinaryLogic isInternal()

Determine whether the method is internal.

Return Value

TrinaryLogic

Type|null getThrowType()

Return the declared throw type.

Return Value

Type|null

TrinaryLogic hasSideEffects()

Determine whether the method has side effects.

Return Value

TrinaryLogic