public function getField($type)
    {
        return !isset($this->fields[$type]) ?
            null :
            new ParamBag($this->fields[$type]);
    }
public function getField($type)
    {
        return !isset($this->fields[$type]) ?
            null :
            new ParamBag($this->fields[$type]);
    }
public function getField ( $ type ) { return ! isset ( $ this -> fields [ $ type ] ) ? null : new ParamBag ( $ this -> fields [ $ type ] ) ; }
Get field params for the specified type.

@param string $type

@return ParamBag|null
Get field params for the specified type .