/** * Get data. * * @throws RuntimeException * * @return string */ public function getData() { $offset = $this->stream->tell(); if (!is_int($offset)) { throw new RuntimeException('Unable to get profile data'); } $this->stream->seek(0); $data = $this->stream->getContents(); $this->stream->seek($offset); return $data; }
public function getContents($maxLength = -1) { return $this->stream->getContents($maxLength); }
/** * {@inheritdoc} */ protected function doGetContents() { return $this->stream->getContents(); }
public function getContents() { return $this->stream->getContents(); }