PHP Interface Kraken\Supervision\SolverInterface

ファイルを表示 Open project: kraken-php/framework

Public Methods

Method Description
__invoke ( Erro\Error | Exceptio\Exception | string $ex, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface Handle given Error, Exception or string message with set of params using solver's handler method.
solve ( Erro\Error | Exceptio\Exception | string $ex, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface Solve given Error, Exception or string message with set of params using solver's handler method.

Method Details

__invoke() public method

Handle given Error, Exception or string message with set of params using solver's handler method.
See also: SolverInterface::solve
public __invoke ( Erro\Error | Exceptio\Exception | string $ex, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$ex Erro\Error | Exceptio\Exception | string
$params mixed[]
return Kraken\Promise\PromiseInterface

solve() public method

Solve given Error, Exception or string message with set of params using solver's handler method.
public solve ( Erro\Error | Exceptio\Exception | string $ex, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$ex Erro\Error | Exceptio\Exception | string
$params mixed[]
return Kraken\Promise\PromiseInterface