/** * Send the request and return the parsed response * * @param RequestInterface $request * @param string $dataType * * @return Entity */ public function requestEntity(RequestInterface $request, $dataType) { return Entity::make($this->sendRequest($request), $request, $dataType); }
/** * Offset to retrieve * * @param mixed $offset The offset to retrieve. * * @return Entity Can return all value types. */ public function offsetGet($offset) { return Entity::make($this->entities[$offset], $this->request, $this->dataType); }