class ForwardedModelMethodExtension implements MethodsClassReflectionExtension

Describe Eloquent builder methods forwarded through models.

Methods

__construct(ReflectionProvider $reflectionProvider, ModelScopeMethodResolver $scopeMethods)

Create a forwarded model method extension.

bool
hasMethod(ClassReflection $classReflection, string $methodName)

Determine whether the model exposes the forwarded builder method.

MethodReflection
getMethod(ClassReflection $classReflection, string $methodName)

Return the forwarded builder method.

Details

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

Create a forwarded model method extension.

Parameters

ReflectionProvider $reflectionProvider
ModelScopeMethodResolver $scopeMethods

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

Determine whether the model exposes the forwarded builder method.

Parameters

ClassReflection $classReflection
string $methodName

Return Value

bool

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

Return the forwarded builder method.

Parameters

ClassReflection $classReflection
string $methodName

Return Value

MethodReflection