class ForwardedBuilderMethodExtension implements MethodsClassReflectionExtension

Resolve declared builders while preserving Eloquent and relation forwarding.

Constants

private RELATION_NON_DECORATED_METHODS

private RELATION_DOCUMENTED_FLUENT_METHODS

Methods

__construct(ReflectionProvider $reflectionProvider, ModelScopeMethodResolver $scopeMethods)

Create a forwarded builder method extension.

bool
hasMethod(ClassReflection $classReflection, string $methodName)

Determine whether the class exposes the forwarded builder method.

MethodReflection
getMethod(ClassReflection $classReflection, string $methodName)

Return the forwarded builder method.

Details

at line 48
__construct(ReflectionProvider $reflectionProvider, ModelScopeMethodResolver $scopeMethods)

Create a forwarded builder method extension.

Parameters

ReflectionProvider $reflectionProvider
ModelScopeMethodResolver $scopeMethods

at line 58
bool hasMethod(ClassReflection $classReflection, string $methodName)

Determine whether the class exposes the forwarded builder method.

Parameters

ClassReflection $classReflection
string $methodName

Return Value

bool

at line 66
MethodReflection getMethod(ClassReflection $classReflection, string $methodName)

Return the forwarded builder method.

Parameters

ClassReflection $classReflection
string $methodName

Return Value

MethodReflection