method
public
IntegerField::configureDefaultValue()
Сигнатура
public configureDefaultValue(callable|mixed $value) : $this
Параметры
$value
callable|mixed
Возвращаемое значение
$this
Как применяется в IntegerField
IntegerField::configureDefaultValue() — метод класса \Bitrix\Main\ORM\Fields\IntegerField модуля «Главный модуль». IntegerField: Класс поля сущности для типа данных integer.
Метод объекта: сначала нужен экземпляр IntegerField.
use Bitrix\Main\ORM\Fields\IntegerField;
/** @var IntegerField $object */
$value = null; // callable|mixed
$result = $object->configureDefaultValue($value);
// $result: $thisДругие методы IntegerField
addFetchDataModifier()addSaveDataModifier()addValidator()cast()Строго приводит значение к типу поля.configureAutocomplete()configureBinary()configureColumnName()configureFulltext()configureNullable()configurePrimary()configurePrivate()configureRequired()
configureDefaultValue() есть и у других классов модуля «Главный модуль»: ArrayField, BooleanField, CryptoField, DateField, DatetimeField, DecimalField, EnumField, FloatField.
Исходный файл: source/main/lib/orm/fields/integerfield.php:248

