/**
  * @command Malocher\CqrsTest\Coverage\Mock\Command\MockCommand
  * @param MockCommand $command
  */
 public function handleAnnotationCommand(MockCommand $command)
 {
     if (is_callable($command->callback)) {
         $command->edit();
         call_user_func($command->callback, $command->isEdited());
     }
 }
Exemplo n.º 2
0
 /**
  * @param MockCommand $command
  */
 public function executeCommandHandler(MockCommand $command)
 {
     $command->edit();
 }
Exemplo n.º 3
0
 /**
  * @command Malocher\CqrsTest\Coverage\Mock\Command\MockCommand
  * @param MockCommand $command
  */
 public function handleAnnotationCommand(MockCommand $command)
 {
     if ($command instanceof MockCommand) {
         $command->edit();
     }
 }