class CallbackPolicy implements PolicyInterface (View source)

The CallbackPolicy class.

Methods

__construct(callable $handler)

CallbackPolicy constructor.

boolean
authorise(mixed $user, mixed $data = null)

authorise

callable
getHandler()

Method to get property Handler

setHandler(callable $handler)

Method to set property handler

Details

at line line 30
__construct(callable $handler)

CallbackPolicy constructor.

Parameters

callable $handler

at line line 43
boolean authorise(mixed $user, mixed $data = null)

authorise

Parameters

mixed $user
mixed $data

Return Value

boolean

at line line 53
callable getHandler()

Method to get property Handler

Return Value

callable

at line line 65
CallbackPolicy setHandler(callable $handler)

Method to set property handler

Parameters

callable $handler

Return Value

CallbackPolicy Return self to support chaining.