public function getUrl(bool $insecure = false): UriInterface
    {
        $url = $this->resolveAllUrlsResponse[array_rand($this->resolveAllUrlsResponse)];

        if ($insecure) {
            return $url;
        }

        return $url->withScheme('https');
    }
public function getUrl(bool $insecure = false): UriInterface
    {
        $url = $this->resolveAllUrlsResponse[array_rand($this->resolveAllUrlsResponse)];

        if ($insecure) {
            return $url;
        }

        return $url->withScheme('https');
    }
public function getUrl ( bool $ insecure = false ) : UriInterface { $ url = $ this -> resolveAllUrlsResponse [ array_rand ( $ this -> resolveAllUrlsResponse ) ] ; if ( $ insecure ) { return $ url ; } return $ url -> withScheme ( 'https' ) ; }
Return the resolved URL for this service.

@param bool $insecure (optional) Set to true to request the insecure version of this service.

@return UriInterface
Return the resolved URL for this service .