class BuilderHelper

Constants

MODEL_RETRIEVAL_METHODS

MODEL_CREATION_METHODS

Properties

string[] $passthru

The methods that should be returned from query builder.

Methods

__construct(ReflectionProvider $reflectionProvider, bool $checkProperties)

No description

EloquentBuilderMethodReflection|null
dynamicWhere(string $methodName, Type $returnObject)

No description

MethodReflection|null
searchOnEloquentBuilder(ClassReflection $eloquentBuilder, string $methodName, ClassReflection $model)

This method mimics the EloquentBuilder::__call method.

string
determineBuilderName(string $modelClassName)

No description

string
determineCollectionClassName(string $modelClassName)

No description

Details

at line 58
__construct(ReflectionProvider $reflectionProvider, bool $checkProperties)

No description

Parameters

ReflectionProvider $reflectionProvider
bool $checkProperties

at line 64
EloquentBuilderMethodReflection|null dynamicWhere(string $methodName, Type $returnObject)

No description

Parameters

string $methodName
Type $returnObject

Return Value

EloquentBuilderMethodReflection|null

at line 133
MethodReflection|null searchOnEloquentBuilder(ClassReflection $eloquentBuilder, string $methodName, ClassReflection $model)

This method mimics the EloquentBuilder::__call method.

Does not handle the case where $methodName exists in EloquentBuilder, that should be checked by caller before calling this method.

Parameters

ClassReflection $eloquentBuilder

Can be EloquentBuilder or a custom builder extending it.

string $methodName
ClassReflection $model

Return Value

MethodReflection|null

Exceptions

MissingMethodFromReflectionException
ShouldNotHappenException

at line 198
string determineBuilderName(string $modelClassName)

No description

Parameters

string $modelClassName

Return Value

string

Exceptions

MissingMethodFromReflectionException
ShouldNotHappenException

at line 219
string determineCollectionClassName(string $modelClassName)

No description

Parameters

string $modelClassName

Return Value

string

Exceptions

MissingMethodFromReflectionException
ShouldNotHappenException