public function getCurl()
    {
        // Create or reuse existing cURL handle
        $this->ch = $this->ch ?? curl_init();

        // Throw exception if the cURL handle failed
        if (!$this->ch) {
            throw new ExpoException('Could not initialise cURL!');
        }

        return $this->ch;
    }
public function getCurl()
    {
        // Create or reuse existing cURL handle
        $this->ch = $this->ch ?? curl_init();

        // Throw exception if the cURL handle failed
        if (!$this->ch) {
            throw new ExpoException('Could not initialise cURL!');
        }

        return $this->ch;
    }
public function getCurl ( ) { // Create or reuse existing cURL handle $ this -> ch = $ this -> ch ?? curl_init ( ) ; // Throw exception if the cURL handle failed if ( ! $ this -> ch ) { throw new ExpoException ( 'Could not initialise cURL!' ) ; } return $ this -> ch ; }
Get the cURL resource

@throws ExpoException

@return null|resource
Get the cURL resource