/** * Returns whether the input is closed. * * @return bool Returns `true` if the input is closed and `false` * otherwise. */ public function isClosed() { return $this->stream->isClosed(); }