original_string: public function getCustomField(string $name, string $objectType, string $namespace): DiscoveredCustomField
      {
          $services = $this->discovery->getCustomFields();
          if (isset($services[$name][$objectType][$namespace])) {
              return $services[$name][$objectType][$namespace];
          }
  
          throw new \RuntimeException('Custom field not found.');
      }
code: public function getCustomField(string $name, string $objectType, string $namespace): DiscoveredCustomField
      {
          $services = $this->discovery->getCustomFields();
          if (isset($services[$name][$objectType][$namespace])) {
              return $services[$name][$objectType][$namespace];
          }
  
          throw new \RuntimeException('Custom field not found.');
      }
code_tokens: public function getCustomField ( string $ name , string $ objectType , string $ namespace ) : DiscoveredCustomField { $ services = $ this -> discovery -> getCustomFields ( ) ; if ( isset ( $ services [ $ name ] [ $ objectType ] [ $ namespace ] ) ) { return $ services [ $ name ] [ $ objectType ] [ $ namespace ] ; } throw new \ RuntimeException ( 'Custom field not found.' ) ; }
docstring: Returns one custom field.
  
  @param string $name
  @param string $objectType
  @param string $namespace
  
  @return DiscoveredCustomField
docstring_tokens: Returns one custom field .