public function getContent() {

            if($this->isSeekable())
                $this->rewind();

            if (!$this->isReadable() || ($contents = stream_get_contents($this->stream)) === false) {
                throw new \RuntimeException('Could not get contents of not readable stream');
            }

            return $contents;

        }
public function getContent() {

            if($this->isSeekable())
                $this->rewind();

            if (!$this->isReadable() || ($contents = stream_get_contents($this->stream)) === false) {
                throw new \RuntimeException('Could not get contents of not readable stream');
            }

            return $contents;

        }
public function getContent ( ) { if ( $ this -> isSeekable ( ) ) $ this -> rewind ( ) ; if ( ! $ this -> isReadable ( ) || ( $ contents = stream_get_contents ( $ this -> stream ) ) === false ) { throw new \ RuntimeException ( 'Could not get contents of not readable stream' ) ; } return $ contents ; }
Get the stream content
@note The cursor will be reset to the start of the file if possible.
@return  string
Get the stream content