protected function setEndpoint(string $endpoint)
    {
        $fullEndpoint = 'https://' . $endpoint . '/rpc';

        if (!empty($endpoint) && $fullEndpoint !== $this->endpoint) {
            $this->endpoint = $fullEndpoint;
        }
    }
protected function setEndpoint(string $endpoint)
    {
        $fullEndpoint = 'https://' . $endpoint . '/rpc';

        if (!empty($endpoint) && $fullEndpoint !== $this->endpoint) {
            $this->endpoint = $fullEndpoint;
        }
    }
protected function setEndpoint ( string $ endpoint ) { $ fullEndpoint = 'https://' . $ endpoint . '/rpc' ; if ( ! empty ( $ endpoint ) && $ fullEndpoint !== $ this -> endpoint ) { $ this -> endpoint = $ fullEndpoint ; } }
Set the endpoint to use

@param string $endpoint
Set the endpoint to use