class CustomCondition implements ConditionInterface (View source)

Check against a custom callable.

Methods

__construct($callable)

Constructor

callable
getCallable()

Get the assigned callable

boolean
isSatisfied(RequestInterface $request)

Get whether the condition is satisfied

array
getArguments(RequestInterface $request)

Get an array of arguments for use in request

Details

__construct($callable)

Constructor

Parameters

$callable

callable getCallable()

Get the assigned callable

Return Value

callable

boolean isSatisfied(RequestInterface $request)

Get whether the condition is satisfied

Parameters

RequestInterface $request

Return Value

boolean

array getArguments(RequestInterface $request)

Get an array of arguments for use in request

Parameters

RequestInterface $request

Return Value

array