Dumplie\CustomerService\Application\Command\RejectPaymentHandler::handle PHP 메소드

handle() 공개 메소드

public handle ( RejectPayment $command )
$command RejectPayment
    public function handle(RejectPayment $command)
    {
        $payment = $this->payments->getById(new PaymentId($command->paymentId()));
        $payment->reject();
    }
RejectPaymentHandler