Inheritance: implements Dumplie\SharedKernel\Application\Command\Command, use trait Dumplie\SharedKernel\Application\Command\CommandSerialize
Exemplo n.º 1
0
 /**
  * @param RejectPayment $command
  * @throws InvalidTransitionException
  */
 public function handle(RejectPayment $command)
 {
     $payment = $this->payments->getById(new PaymentId($command->paymentId()));
     $payment->reject();
 }