Inheritance: implements Dumplie\SharedKernel\Application\Command\Command, use trait Dumplie\SharedKernel\Application\Command\CommandSerialize
Example #1
0
 /**
  * @param PrepareOrder $command
  * @throws InvalidTransitionException
  */
 public function handle(PrepareOrder $command)
 {
     $order = $this->orders->getById(new OrderId($command->orderId()));
     $order->prepare();
 }