Dumplie\CustomerService\Application\Command\RefundOrderHandler::handle PHP Méthode

handle() public méthode

public handle ( RefundOrder $command )
$command RefundOrder
    public function handle(RefundOrder $command)
    {
        $order = $this->orders->getById(new OrderId($command->orderId()));
        $order->refund();
    }
RefundOrderHandler