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

handle() public method

public handle ( SendOrder $command )
$command SendOrder
    public function handle(SendOrder $command)
    {
        $order = $this->orders->getById(new OrderId($command->orderId()));
        $order->send();
    }
SendOrderHandler