public function close()
    {
        if (is_resource($this->stream) === true) {
            fclose($this->stream);
        }

        $this->detach();
    }
public function close()
    {
        if (is_resource($this->stream) === true) {
            fclose($this->stream);
        }

        $this->detach();
    }
public function close ( ) { if ( is_resource ( $ this -> stream ) === true ) { fclose ( $ this -> stream ) ; } $ this -> detach ( ) ; }
Closes the stream and any underlying resources
Closes the stream and any underlying resources