Dumplie\CustomerService\Application\Command\RejectPaymentHandler::handle PHP Method

handle() public method

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