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

handle() public method

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