protected function getEndpoint()
    {
        // If force production is in effect
        if ($this->force_production) {
            $this->force_production = false;
            return $this->endpoints['production'];
        }

        // Return the active endpoint
        return $this->endpoints[$this->active_endpoint];
    }
protected function getEndpoint()
    {
        // If force production is in effect
        if ($this->force_production) {
            $this->force_production = false;
            return $this->endpoints['production'];
        }

        // Return the active endpoint
        return $this->endpoints[$this->active_endpoint];
    }
protected function getEndpoint ( ) { // If force production is in effect if ( $ this -> force_production ) { $ this -> force_production = false ; return $ this -> endpoints [ 'production' ] ; } // Return the active endpoint return $ this -> endpoints [ $ this -> active_endpoint ] ; }
Get the current active endpoint

@return mixed
Get the current active endpoint