Dumplie\CustomerService\Application\Command\PayPaymentHandler::handle PHP Метод

handle() публичный Метод

public handle ( PayPayment $command )
$command PayPayment
    public function handle(PayPayment $command)
    {
        $payment = $this->payments->getById(new PaymentId($command->paymentId()));
        $payment->pay();
    }
PayPaymentHandler