Skip to content

CallableCommandHandler

Properties

handler

protected callable $handler

Methods

__construct

public __construct(callable $handler): mixed

Parameters:

Parameter Type Description
$handler callable

handle

Handle a command execution

public handle(\Codefy\CommandBus\Command $command): mixed|void

Parameters:

Parameter Type Description
$command \Codefy\CommandBus\Command


Automatically generated on 2025-10-13