src/TempFile.php
public function getContent() {

        $size = $this->getSize();

        if($size > 0) {

            $pos = $this->ftell();

            $this->fseek(0);
            $return = $this->fread($size);
            $this->fseek($pos);

            return $return;
        }

        return '';
    }
public function getContent() {

        $size = $this->getSize();

        if($size > 0) {

            $pos = $this->ftell();

            $this->fseek(0);
            $return = $this->fread($size);
            $this->fseek($pos);

            return $return;
        }

        return '';
    }
public function getContent ( ) { $ size = $ this -> getSize ( ) ; if ( $ size > 0 ) { $ pos = $ this -> ftell ( ) ; $ this -> fseek ( 0 ) ; $ return = $ this -> fread ( $ size ) ; $ this -> fseek ( $ pos ) ; return $ return ; } return '' ; }
Returns file content as string.

@return string
@throws TempFileException
Returns file content as string .