public function hasEndpoint($port, $protocol = 'tcp')
    {
        $key = $port . '/' . $protocol;

        return array_key_exists($key, $this->endpoints);
    }
public function hasEndpoint($port, $protocol = 'tcp')
    {
        $key = $port . '/' . $protocol;

        return array_key_exists($key, $this->endpoints);
    }
public function hasEndpoint ( $ port , $ protocol = 'tcp' ) { $ key = $ port . '/' . $ protocol ; return array_key_exists ( $ key , $ this -> endpoints ) ; }
Return whether or not an endpoint exists

@param $port
@param string $protocol

@return bool
Return whether or not an endpoint exists