protected function replaceEndpoint(string &$stub, string $endpoint)
    {

        if (strlen($endpoint) > 0)
            $stub = str_replace('/dummy/endpoint/', $endpoint, $stub);

        return $this;
    }
protected function replaceEndpoint(string &$stub, string $endpoint)
    {

        if (strlen($endpoint) > 0)
            $stub = str_replace('/dummy/endpoint/', $endpoint, $stub);

        return $this;
    }
protected function replaceEndpoint ( string & $ stub , string $ endpoint ) { if ( strlen ( $ endpoint ) > 0 ) $ stub = str_replace ( '/dummy/endpoint/' , $ endpoint , $ stub ) ; return $ this ; }
Replace the endpoint for the given stub.

@param string $stub
@param string $endpoint

@return $this
Replace the endpoint for the given stub .