client = $client; } public function dispatch(Command $command): void { $response = $this->client->executeRaw($command->toRawCommand()); if (is_string($response) && 0 !== strpos($response, 'OK')) { throw new DatabaseException($response); } } }