public functioneof() : bool {
// Always return true if the underlying stream is EOFif ($this->stream
->eof()) {
returntrue;
}
// No limit and the underlying stream is not at EOFif ($this->limit === -1) {
returnfalse;
}
return$this->stream
->tell() >= $this->offset + $this->limit;
}