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.');
    }
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.');
    }
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.' ) ; }
Returns one custom field.

@param string $name
@param string $objectType
@param string $namespace

@return DiscoveredCustomField
Returns one custom field .