class RelationshipQueryCallbackExtension implements MethodParameterClosureTypeExtension, StaticMethodParameterClosureTypeExtension

Methods

__construct(BuilderHelper $builderHelper)

Create the relationship query callback extension.

bool
isMethodSupported(MethodReflection $methodReflection, ParameterReflection $parameter)

Determine whether the parameter is a polymorphic relationship query callback.

bool
isStaticMethodSupported(MethodReflection $methodReflection, ParameterReflection $parameter)

Determine whether the parameter is a polymorphic relationship query callback.

Type|null
getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, ParameterReflection $parameter, Scope $scope)

Return the callback type for an instance call.

Type|null
getTypeFromStaticMethodCall(MethodReflection $methodReflection, StaticCall $methodCall, ParameterReflection $parameter, Scope $scope)

Return the callback type for a static call.

Details

at line 36
__construct(BuilderHelper $builderHelper)

Create the relationship query callback extension.

Parameters

BuilderHelper $builderHelper

at line 43
bool isMethodSupported(MethodReflection $methodReflection, ParameterReflection $parameter)

Determine whether the parameter is a polymorphic relationship query callback.

Parameters

MethodReflection $methodReflection
ParameterReflection $parameter

Return Value

bool

at line 59
bool isStaticMethodSupported(MethodReflection $methodReflection, ParameterReflection $parameter)

Determine whether the parameter is a polymorphic relationship query callback.

Parameters

MethodReflection $methodReflection
ParameterReflection $parameter

Return Value

bool

at line 67
Type|null getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, ParameterReflection $parameter, Scope $scope)

Return the callback type for an instance call.

Parameters

MethodReflection $methodReflection
MethodCall $methodCall
ParameterReflection $parameter
Scope $scope

Return Value

Type|null

at line 75
Type|null getTypeFromStaticMethodCall(MethodReflection $methodReflection, StaticCall $methodCall, ParameterReflection $parameter, Scope $scope)

Return the callback type for a static call.

Parameters

MethodReflection $methodReflection
StaticCall $methodCall
ParameterReflection $parameter
Scope $scope

Return Value

Type|null