class MacroMethodsClassReflectionExtension implements MethodsClassReflectionExtension

Methods

__construct(ReflectionProvider $reflectionProvider, ClosureTypeFactory $closureTypeFactory, WithHeadExtension $withHeadExtension, AuthGuardHelper $authGuardHelper, RuntimeInputs $runtimeInputs)

Create a macro methods extension.

bool
hasMethod(ClassReflection $classReflection, string $methodName)

Determine whether a macro registered for the class types the method.

MethodReflection
getMethod(ClassReflection $classReflection, string $methodName)

Get the macro found for the class.

Type|null
getThrowType(ClassReflection $classReflection, string $methodName)

Get the exception type of the macro registered for the class's method.

Details

at line 57
__construct(ReflectionProvider $reflectionProvider, ClosureTypeFactory $closureTypeFactory, WithHeadExtension $withHeadExtension, AuthGuardHelper $authGuardHelper, RuntimeInputs $runtimeInputs)

Create a macro methods extension.

Parameters

ReflectionProvider $reflectionProvider
ClosureTypeFactory $closureTypeFactory
WithHeadExtension $withHeadExtension
AuthGuardHelper $authGuardHelper
RuntimeInputs $runtimeInputs

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

Determine whether a macro registered for the class types the method.

Parameters

ClassReflection $classReflection
string $methodName

Return Value

bool

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

Get the macro found for the class.

Parameters

ClassReflection $classReflection
string $methodName

Return Value

MethodReflection

at line 100
Type|null getThrowType(ClassReflection $classReflection, string $methodName)

Get the exception type of the macro registered for the class's method.

Parameters

ClassReflection $classReflection
string $methodName

Return Value

Type|null