public function getEndpointAsUrl($port, $protocol = 'tcp')
    {
        if (!$this->hasEndpoint($port, $protocol)) {
            throw new Exception('Endpoint is not available');
        }

        $key = $port . '/' . $protocol;

        return Url::fromString($this->endpoints[$key]);
    }
public function getEndpointAsUrl($port, $protocol = 'tcp')
    {
        if (!$this->hasEndpoint($port, $protocol)) {
            throw new Exception('Endpoint is not available');
        }

        $key = $port . '/' . $protocol;

        return Url::fromString($this->endpoints[$key]);
    }
public function getEndpointAsUrl ( $ port , $ protocol = 'tcp' ) { if ( ! $ this -> hasEndpoint ( $ port , $ protocol ) ) { throw new Exception ( 'Endpoint is not available' ) ; } $ key = $ port . '/' . $ protocol ; return Url :: fromString ( $ this -> endpoints [ $ key ] ) ; }
Try to get a single endpoint as a Url

@param $port
@param string $protocol

@return Url
@throws Exception
Try to get a single endpoint as a Url