public function __toString() { if ($this->reachedEof) { return $this->cache; } $this->getContents(); return $this->cache; }