| 1 | <?php |
||
| 15 | class CommandQueueingDecorator implements Decorator |
||
| 16 | { |
||
| 17 | use InnerBusTrait; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var \Chief\CommandQueuer |
||
| 21 | */ |
||
| 22 | protected $queuer; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param CommandQueuer $queuer |
||
| 26 | * @param CommandBus $innerCommandBus |
||
| 27 | */ |
||
| 28 | public function __construct(CommandQueuer $queuer, CommandBus $innerCommandBus = null) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Execute a command |
||
| 36 | * |
||
| 37 | * @param Command $command |
||
| 38 | * @return void|mixed |
||
| 39 | */ |
||
| 40 | public function execute(Command $command) |
||
| 49 | } |
||
| 50 |