class EloquentBuilderMethodReflection implements MethodReflection

A builder method synthesized for a call that the builder's __call() handles.

Unlike upstream, only dynamic where clauses, such as whereEmail(), are synthesized, so ModelPropertyColumnRule recognizes them by this class.

Methods

__construct(string $methodName, ClassReflection $classReflection, array $parameters, Type|null $returnType = null, bool $isVariadic = false)

Create an Eloquent builder 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 variants.

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 33
__construct(string $methodName, ClassReflection $classReflection, array $parameters, Type|null $returnType = null, bool $isVariadic = false)

Create an Eloquent builder method reflection.

Parameters

string $methodName
ClassReflection $classReflection
array $parameters
Type|null $returnType
bool $isVariadic

at line 46
ClassReflection getDeclaringClass()

Return the declaring class.

Return Value

ClassReflection

at line 54
bool isStatic()

Determine whether the method is static.

Return Value

bool

at line 62
bool isPrivate()

Determine whether the method is private.

Return Value

bool

at line 70
bool isPublic()

Determine whether the method is public.

Return Value

bool

at line 78
string getName()

Return the method name.

Return Value

string

at line 86
ClassMemberReflection getPrototype()

Return the method prototype.

Return Value

ClassMemberReflection

at line 96
array getVariants()

Return the method variants.

Return Value

array

at line 112
string|null getDocComment()

Return no docblock for the synthesized signature.

Return Value

string|null

at line 120
TrinaryLogic isDeprecated()

Determine whether the method is deprecated.

Return Value

TrinaryLogic

at line 128
string|null getDeprecatedDescription()

Return the deprecation description.

Return Value

string|null

at line 136
TrinaryLogic isFinal()

Determine whether the method is final.

Return Value

TrinaryLogic

at line 144
TrinaryLogic isInternal()

Determine whether the method is internal.

Return Value

TrinaryLogic

at line 152
Type|null getThrowType()

Return the declared throw type.

Return Value

Type|null

at line 160
TrinaryLogic hasSideEffects()

Determine whether the method has side effects.

Return Value

TrinaryLogic