public function close()
    {
        if ('resource' === gettype($this->ch))
            curl_close($this->ch);

        $this->state = self::STATE_CLOSED;

        return $this;
    }
public function close()
    {
        if ('resource' === gettype($this->ch))
            curl_close($this->ch);

        $this->state = self::STATE_CLOSED;

        return $this;
    }
public function close ( ) { if ( 'resource' === gettype ( $ this -> ch ) ) curl_close ( $ this -> ch ) ; $ this -> state = self :: STATE_CLOSED ; return $ this ; }
Close the curl resource, if exists
Close the curl resource if exists