function to add default constraint.

@param string $value

@return schema
518144
public function affect($value)
    {
        $i = Collection::count(self::$colmuns) - 1;
        self::$colmuns[$i] .= " default '".$value."'";
        //
        return $this;
    }
429755
public function setCoreHidemenuDefault($value)
    {
        $this->setFieldName('hidemenu_default');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
292084
public function setDefaultJpegQuality($value)
    {
        if ($this->valn->integer($value, 0, 100)) {
            $value = (int) $value;
            $this->config->set('concrete.misc.default_jpeg_image_compression', $value);
            $this->config->save('concrete.misc.default_jpeg_image_compression', $value);
        }

        return $this;
    }
1289675
public function clamp($value)
	{
		return isset($value) && is_numeric($value) ? min(max($value, $this->min), $this->max) : $this->default ?: ($this->nullable ? null : min(max(0, $this->min), $this->max));
	}
316063
public static function make($value, $defaultOrder = self::ORDER_ASCENDING)
    {
        $value = static::prepareValue($value);
        list($field, $order) = static::parseFieldAndOrder($value, $defaultOrder);

        static::validateFieldName($field);

        return new static($field, $order);
    }
144453
public function layout($value = null)
    {
        if (null === $value)
            return $this->layout;
        else
            $this->layout = $value;
    }
895205
public function setCoreSearchDefault($value)
    {
        $this->setFieldName('search_default');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
878957
protected function createAllOfConstraint(Value\ArrayValue $value)
    {
        $schemas = array();
        foreach ($value as $subValue) {
            $schemas[] = $this->createSchema($subValue);
        }

        return new Generic\AllOfConstraint($schemas);
    }
666603
public function setAddition($value)
    {
        $this->data->amount->subtotals->addition = $this->convertAmount($value);

        return $this;
    }
1135715
public function gt($value) {
        $this->rule = $value;
        $this->check_role = 'gt';
        $result = !is_null($this->value) && $this->value > $value;
        $this->checkResult($result);
        return $this;
    }
565633
public function createReference($value)
    {
        $ref = $this->generateNextReference();
        $this->references[$ref] = $value;

        return $ref;
    }
1135345
public function setDefaultValue($value)
    {
        if (($value instanceof ValueGenerator) === false) {
            $value = new ValueGenerator($value);
        }

        if ($this->isValidParameterDefaultValue($value) !== true) {
            throw new InvalidArgumentException('Parameter default value is not valid.');
        }

        $this->defaultValue = $value;

        return $this;
    }
602243
public function append($value)
    {
        $nValue = (is_array($value) ? $value : [$value]);
        return $this->vUnion(new static($nValue));
    }
500377
public function addConstructorValue($value)
        {
            $endPoint =& $this->_getEndPoint();

            if (!isset($endPoint['args'])) {
                $endPoint['args'] = array();
            }

            $endPoint['args'][] = array(
                'type' => 'value',
                'item' => $value
            );

            return $this;
        }
1349143
public function addClass(string $value) : self
    {
        $class = trim($this->attributes['class']);
        $this->attributes['class'] = trim($class . ' ' . trim($value));
        return $this;
    }
1045541
public static function wrap($value): self
    {
        switch (true) {
            case $value instanceof self:
                return new static($value);

            case $value instanceof BaseCollection:
                return new static($value);

            default:
                return new static(Arr::wrap($value));
        }
    }
992419
public function addParameter($name, $value): ConstraintViolation
    {
        $this->parameters[] = new ConstraintViolationParameter($name, $this->normalizeValue($value));

        return $this;
    }