public function __toString() { if (!$this->isReadable()) { return ''; } try { $this->rewind(); return $this->getContents(); } catch (RuntimeException $e) { return ''; } }