/** * The remaining requests * * @throws \RuntimeException * @return integer */ public function getRemaining() { if (is_null($this->oLastResponse)) { throw new \RuntimeException('Cannot access last response. Did you made a request?'); } return $this->oLastResponse->getRemaining(); }