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