/** * Returns string representation of attached stream. * @return string */ public function getResource() { return $this->inStream->__toString(); }