Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 /**
  * 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);
 }