Skip to content

CallableQueryHandler


Properties

handler

protected callable $handler

Methods

__construct

public __construct(callable $handler): mixed

Parameters:

Parameter Type Description
$handler callable

handle

Handle a query execution.

public handle(\Codefy\QueryBus\Query $query): mixed

Parameters:

Parameter Type Description
$query \Codefy\QueryBus\Query