public function eof()
    {
        if (!\is_resource($this->stream)) {
            throw new \TypeError();
        }
        return $this->isAttached() ? \feof($this->stream) : true;
    }
public function eof()
    {
        if (!\is_resource($this->stream)) {
            throw new \TypeError();
        }
        return $this->isAttached() ? \feof($this->stream) : true;
    }
public function eof ( ) { if ( ! \ is_resource ( $ this -> stream ) ) { throw new \ TypeError ( ) ; } return $ this -> isAttached ( ) ? \ feof ( $ this -> stream ) : true ; }
Returns true if the stream is at the end of the stream.

@return bool
@throws \TypeError
Returns true if the stream is at the end of the stream .