class CustomCondition implements ConditionInterface (View source)

Check against a custom callable

Methods

__construct($callable)

Constructor

boolean
isSatisfied(Request $request)

Get whether the condition is satisfied

array
getArguments(Request $request)

Get an array of arguments for use in request

callable
getCallable()

Get the assigned callable

Details

__construct($callable)

Constructor

Parameters

$callable

boolean isSatisfied(Request $request)

Get whether the condition is satisfied

Parameters

Request $request

Return Value

boolean

array getArguments(Request $request)

Get an array of arguments for use in request

Parameters

Request $request

Return Value

array

callable getCallable()

Get the assigned callable

Return Value

callable