protected function addFieldDefaultValue(&$property, Field $field)
    {
        if (!is_null($field->dataValue) && !$field->nullable) {
            $property .= sprintf("->default('%s')", $field->dataValue);
        }

        return $this;
    }
protected function addFieldDefaultValue(&$property, Field $field)
    {
        if (!is_null($field->dataValue) && !$field->nullable) {
            $property .= sprintf("->default('%s')", $field->dataValue);
        }

        return $this;
    }
protected function addFieldDefaultValue ( & $ property , Field $ field ) { if ( ! is_null ( $ field -> dataValue ) && ! $ field -> nullable ) { $ property .= sprintf ( "->default('%s')" , $ field -> dataValue ) ; } return $ this ; }
Adds the field's "default" value to the given property.

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

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