RelationshipQueryCallbackExtension
class RelationshipQueryCallbackExtension implements MethodParameterClosureTypeExtension, StaticMethodParameterClosureTypeExtension
Methods
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.
at line 43
bool
isMethodSupported(MethodReflection $methodReflection, ParameterReflection $parameter)
Determine whether the parameter is a polymorphic relationship query callback.
at line 59
bool
isStaticMethodSupported(MethodReflection $methodReflection, ParameterReflection $parameter)
Determine whether the parameter is a polymorphic relationship query callback.
at line 67
Type|null
getTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, ParameterReflection $parameter, Scope $scope)
Return the callback type for an instance call.
at line 75
Type|null
getTypeFromStaticMethodCall(MethodReflection $methodReflection, StaticCall $methodCall, ParameterReflection $parameter, Scope $scope)
Return the callback type for a static call.