original_string: private function getFieldType(Field $field)
      {
          if ($field->isStored() && $field->isIndexed()) {
              return 'text';
          }
  
          if (false === $field->isStored() && $field->isIndexed()) {
              return 'unStored';
          }
  
          if ($field->isStored() && false === $field->isIndexed()) {
              return 'unIndexed';
          }
  
          throw new \InvalidArgumentException(
              sprintf(
                  'Field "%s" cannot be both not indexed and not stored',
                  $field->getName()
              )
          );
      }
code: private function getFieldType(Field $field)
      {
          if ($field->isStored() && $field->isIndexed()) {
              return 'text';
          }
  
          if (false === $field->isStored() && $field->isIndexed()) {
              return 'unStored';
          }
  
          if ($field->isStored() && false === $field->isIndexed()) {
              return 'unIndexed';
          }
  
          throw new \InvalidArgumentException(
              sprintf(
                  'Field "%s" cannot be both not indexed and not stored',
                  $field->getName()
              )
          );
      }
code_tokens: private function getFieldType ( Field $ field ) { if ( $ field -> isStored ( ) && $ field -> isIndexed ( ) ) { return 'text' ; } if ( false === $ field -> isStored ( ) && $ field -> isIndexed ( ) ) { return 'unStored' ; } if ( $ field -> isStored ( ) && false === $ field -> isIndexed ( ) ) { return 'unIndexed' ; } throw new \ InvalidArgumentException ( sprintf ( 'Field "%s" cannot be both not indexed and not stored' , $ field -> getName ( ) ) ) ; }
docstring: Return the zend lucene field type to use for the given field.
  
  @param Field $field
  
  @return string
docstring_tokens: Return the zend lucene field type to use for the given field .