Sets length of the column.
@param array|string|int $value
322343
public function setLength($value): void
    {
        $length = is_array($value) ? $value : preg_split('\s*,\s*', $value);

        if (isset($length[0]) && !empty($length[0])) {
            $this->precision = $length[0];
        }

        if (isset($length[1]) && !empty($length[1])) {
            $this->scale = $length[1];
        }
    }
764194
public function addValue( $value )
	{
		$value	= is_int( $value ) ? $value : (float) $value;
		$this->values[]	= $value;
		$this->dimension++;
	}
1031865
public function setNumberOfShards($value)
    {
        assert(null === $value || is_numeric($value));
        $this->_numberOfShards = $value;
    }
770731
public function writeChar($value, $offset)
    {
        $this->insert('c', $value, $offset, $this->lengthMap->getLengthFor('c'));
    }
539735
function setValue($value)
    {
        $this->_createElementsIfNotExist();
        foreach (array_keys($this->_elements) as $key) {
            if (!$this->_appendName) {
                $v = $this->_elements[$key]->_findValue($value);
                if (null !== $v) {
                    $this->_elements[$key]->onQuickFormEvent('setGroupValue', $v, $this);
                }

            } else {
                $elementName = $this->_elements[$key]->getName();
                $index       = strlen($elementName) ? $elementName : $key;
                if (is_array($value)) {
                    if (isset($value[$index])) {
                        $this->_elements[$key]->onQuickFormEvent('setGroupValue', $value[$index], $this);
                    }
                } elseif (isset($value)) {
                    $this->_elements[$key]->onQuickFormEvent('setGroupValue', $value, $this);
                }
            }
        }
    }
796291
public function setColumnValue(string $name, $value): void
	{
		$value = $this->cast($name, $value);

		if(method_exists($this, $name . 'Mutator'))
		{
			$this->columns[$name] = $this->{$name . 'Mutator'}($value);
		}
		else
		{
			$this->columns[$name] = $value;
		}
	}
1251828
public function validate(string $value)
    {
        if (!$value || mb_strlen($value, 'UTF-8') >= $this->minimumLength) {
            return;
        }

        $this->error['minlength.%'] = [$this->minimumLength];
    }
271345
public function setExtra($value)
    {
        $this->_validateString('Extra', $value);

        if ($this->data['extra'] === $value) {
            return;
        }

        $this->data['extra'] = $value;

        $this->_setModified('extra');
    }
633259
public function setValue($value)
    {
        $this->value = [];

        $token = ' ,;';
        $values = strtok($value, $token);

        while ($values !== false) {
            $this->value[] = $values;
            $values = strtok($token);
        }
    }
777871
public function setValue($value)
    {
        $hasType = isset($this->_type) && is_string($this->_type);
        $isMultiple = $hasType && strpos($this->_type, '[]') !== false;

        if ($hasType) {
            $value = $this->_castToExpression($value, $this->_type);
        }

        if ($isMultiple) {
            list($value, $this->_valueExpressions) = $this->_collectExpressions($value);
        }

        $this->_isMultiple = $isMultiple;
        $this->_value = $value;
    }
326783
public void writeStringLength(String value) {
    byte[] bytes = value.getBytes(StandardCharsets.UTF_8);
    int length = bytes.length;
    while (remaining() < length + 9) {
      grow();
    }
    writeLength(length);
    System.arraycopy(bytes, 0, buf, position, length);
    position += length;
  }
989661
public function checkLength($value)
    {
        if (strlen($value) != 8) {
            $this->setCheck(false);
        } else {
            $this->setCheck(true);
        }

        return parent::checkLength($value);
    }
865164
public function setBic($value)
    {
        if (in_array(strlen($value), $this->getAllowedBicSizes()) === false) {
            throw new ErrorParameter(
                'Bic must be with one of these lengths: ' . implode(', ', $this->getAllowedBicSizes())
            );
        }

        $this->bic = $value;

        return $this;
    }
854463
public function setCorePasswordGeneratedLength($value)
    {
        $this->setFieldName('password_generated_length');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
816785
public function setColumnWidth($col, $value) : Writer
    {
        if (is_numeric($col)) {
            throw new \InvalidArgumentException("Unsupported column vowel");
        }
        $this->columns_widths[$col] = (int) $value;
        return $this;
    }
1022231
public function setQuestionAttribute($value): void
    {
        $value = (isset($value['text'])) ? $value['text'] : (! is_array($value) ? $value : '');

        $this->attributes['question'] = trim(str_replace('&nbsp;', ' ', strip_tags($value)));
    }
1191549
public function setValue($value)
    {
        $this->value = $value;
        $this->listeners->executeAll($this->value);
    }