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