src/Search/Framework/Schema.php
public function getField($id)
    {
        if (!isset($this->_fields[$id])) {
            $message = 'Field "' . $id . '" not associated with this schema.';
            throw new \InvalidArgumentException($message);
        }
        return $this->_fields[$id];
    }
public function getField($id)
    {
        if (!isset($this->_fields[$id])) {
            $message = 'Field "' . $id . '" not associated with this schema.';
            throw new \InvalidArgumentException($message);
        }
        return $this->_fields[$id];
    }
public function getField ( $ id ) { if ( ! isset ( $ this -> _fields [ $ id ] ) ) { $ message = 'Field "' . $ id . '" not associated with this schema.' ; throw new \ InvalidArgumentException ( $ message ) ; } return $ this -> _fields [ $ id ] ; }
Returns a field by its unique identifier.

@param string $id
The unique identifier of the field.

@return SchemaField

@throw \InvalidArgumentException()
Returns a field by its unique identifier .