Odin
The main Odin class is a CommandBus, which is effectively a decorator around another CommandBus interface.
- Full name:
\Codefy\CommandBus\Odin
- This class implements:
\Codefy\CommandBus\CommandBus
Properties
bus
Methods
__construct
Constructor
Parameters:
Parameter | Type | Description |
---|---|---|
$bus | ?\Codefy\CommandBus\CommandBus | |
$decorators | array | Array of \Codefy\CommandBus\Decorator objects |
pushDecorator
Push a new Decorator on to the stack.
Parameters:
Parameter | Type | Description |
---|---|---|
$decorator | \Codefy\CommandBus\Decorator |
execute
Execute a command.
Parameters:
Parameter | Type | Description |
---|---|---|
$command | \Codefy\CommandBus\Command |
Throws:
Automatically generated on 2025-10-13