ForwardedModelMethodExtension
class ForwardedModelMethodExtension implements MethodsClassReflectionExtension
Describe the methods an Eloquent model's call() and callStatic() handle.
Constants
| private MODEL_CALL_FORWARDED_METHODS |
|
Methods
__construct(ModelScopeMethodResolver $scopeMethods, BuilderMacroResolver $builderMacros, BuilderDependencies $builderDependencies, BuilderHelper $builderHelper, MacroMethodsClassReflectionExtension $macroMethods, DynamicRelationMethodExtension $dynamicRelations)
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 45
__construct(ModelScopeMethodResolver $scopeMethods, BuilderMacroResolver $builderMacros, BuilderDependencies $builderDependencies, BuilderHelper $builderHelper, MacroMethodsClassReflectionExtension $macroMethods, DynamicRelationMethodExtension $dynamicRelations)
Create a forwarded model method extension.
at line 59
bool
hasMethod(ClassReflection $classReflection, string $methodName)
Determine whether the model exposes the forwarded builder method.
at line 67
MethodReflection
getMethod(ClassReflection $classReflection, string $methodName)
Return the forwarded builder method.