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