method public static

TradeBinding::getSeverity()

Класс: \Bitrix\Sale\Services\PaySystem\Restrictions\TradeBinding

Сигнатура

public static getSeverity(int $mode) : int

Параметры

$mode int
RestrictionManager::MODE_CLIENT | RestrictionManager::MODE_MANAGER

Возвращаемое значение

int

Как применяется в TradeBinding

TradeBinding::getSeverity() — метод класса \Bitrix\Sale\Services\PaySystem\Restrictions\TradeBinding модуля «Интернет-магазин».

Статический метод — вызывается через имя класса TradeBinding, без создания объекта.

use Bitrix\Main\Loader;
use Bitrix\Sale\Services\PaySystem\Restrictions\TradeBinding;

Loader::includeModule('sale');

$mode = 1;
$result = TradeBinding::getSeverity($mode);
// $result: int

Другие методы TradeBinding

getSeverity() есть и у других классов модуля «Интернет-магазин»: Base, ByConcreteProduct, ByDimensions, ByLocation, ByMaxSize, ByPaySystem, ByPersonType, ByPrice.

Исходный файл: source/sale/lib/services/paysystem/restrictions/tradebinding.php:176

Что будем искать? Например,Продвижение