Factory.php
public function getField($name)
    {
        if (isset($this->typeClasses[$name])) {
            return $this->inject(new $this->typeClasses[$name]);
        } else {
            throw new ParserException('Unknown field type: '.$name);
        }
    }
public function getField($name)
    {
        if (isset($this->typeClasses[$name])) {
            return $this->inject(new $this->typeClasses[$name]);
        } else {
            throw new ParserException('Unknown field type: '.$name);
        }
    }
public function getField ( $ name ) { if ( isset ( $ this -> typeClasses [ $ name ] ) ) { return $ this -> inject ( new $ this -> typeClasses [ $ name ] ) ; } else { throw new ParserException ( 'Unknown field type: ' . $ name ) ; } }
Get a field of a given type
Get a field of a given type