original_string: public function hasEndpoint($port, $protocol = 'tcp')
      {
          $key = $port . '/' . $protocol;
  
          return array_key_exists($key, $this->endpoints);
      }
code: public function hasEndpoint($port, $protocol = 'tcp')
      {
          $key = $port . '/' . $protocol;
  
          return array_key_exists($key, $this->endpoints);
      }
code_tokens: public function hasEndpoint ( $ port , $ protocol = 'tcp' ) { $ key = $ port . '/' . $ protocol ; return array_key_exists ( $ key , $ this -> endpoints ) ; }
docstring: Return whether or not an endpoint exists
  
  @param $port
  @param string $protocol
  
  @return bool
docstring_tokens: Return whether or not an endpoint exists