protected function setUnsigned(Field & $field, $type)
    {
        if (strpos($type, 'unsigned') !== false) {
            $field->isUnsigned = true;
            $field->validationRules[] = sprintf('min:%s', 0);
        }

        return $this;
    }
protected function setUnsigned(Field & $field, $type)
    {
        if (strpos($type, 'unsigned') !== false) {
            $field->isUnsigned = true;
            $field->validationRules[] = sprintf('min:%s', 0);
        }

        return $this;
    }
protected function setUnsigned ( Field & $ field , $ type ) { if ( strpos ( $ type , 'unsigned' ) !== false ) { $ field -> isUnsigned = true ; $ field -> validationRules [ ] = sprintf ( 'min:%s' , 0 ) ; } return $ this ; }
Set the unsiged flag for a given field.

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

@return $this
Set the unsiged flag for a given field .