method
public
RestrictionInfo::__construct()
Сигнатура
public __construct(string $restrictionType[, array<string|int, mixed> $options = [] ]) : mixed
Параметры
$restrictionType
string
$options
array<string|int, mixed>
= []
Возвращаемое значение
mixed
Как применяется в RestrictionInfo
RestrictionInfo::__construct() — метод класса \Bitrix\Sale\Services\Base\RestrictionInfo модуля «Интернет-магазин».
Конструктор: создаёт экземпляр RestrictionInfo — обязательные аргументы перечислены в разделе «Параметры».
use Bitrix\Main\Loader;
use Bitrix\Sale\Services\Base\RestrictionInfo;
Loader::includeModule('sale');
$restrictionType = '';
$object = new RestrictionInfo($restrictionType);Другие методы RestrictionInfo
__construct() есть и у других классов модуля «Интернет-магазин»: ApplePay, Automatic, AutomaticProfile, BarcodeGenerator, Base, Base, Base, BasePreset.
Исходный файл: source/sale/lib/services/base/restrictioninfo.php:10

