protected function addFieldIndex(&$property, Field $field)
    {
        if ($field->isIndex && !$field->isUnique) {
            $property .= '->index()';
        }

        return $this;
    }
protected function addFieldIndex(&$property, Field $field)
    {
        if ($field->isIndex && !$field->isUnique) {
            $property .= '->index()';
        }

        return $this;
    }
protected function addFieldIndex ( & $ property , Field $ field ) { if ( $ field -> isIndex && ! $ field -> isUnique ) { $ property .= '->index()' ; } return $ this ; }
Adds the field's "index" value to the given property.

@param string $property
@param CrestApps\CodeGenerator\Models\Field $field

@return $this
Adds the field s index value to the given property .