public function getFieldType($fieldName)
    {
        if (!array_key_exists($fieldName, $this->_fields)) {
            throw new \Exception("Field name \"$fieldName\" not found in document.");
        }

        return $this->_fields[$fieldName]->getType ();
    }
public function getFieldType($fieldName)
    {
        if (!array_key_exists($fieldName, $this->_fields)) {
            throw new \Exception("Field name \"$fieldName\" not found in document.");
        }

        return $this->_fields[$fieldName]->getType ();
    }
public function getFieldType ( $ fieldName ) { if ( ! array_key_exists ( $ fieldName , $ this -> _fields ) ) { throw new \ Exception ( "Field name \"$fieldName\" not found in document." ) ; } return $ this -> _fields [ $ fieldName ] -> getType ( ) ; }
Returns type for a named field in this document.

@param string $fieldName

@return string

@throws \Exception
Returns type for a named field in this document .