Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
restrictioninfo.php
1
<?php
2
3
namespace
Bitrix\Sale\Services\Base
;
4
5
final
class
RestrictionInfo
6
{
7
private
string
$restrictionType;
8
private
array $options;
9
10
public
function
__construct
(
string
$restrictionType, array $options = [])
11
{
12
$this->options = $options;
13
$this->restrictionType = $restrictionType;
14
}
15
16
public
function
getType
(): string
17
{
18
return
$this->restrictionType;
19
}
20
21
public
function
getOption
(
string
$optionId)
22
{
23
return
$this->options[$optionId] ??
null
;
24
}
25
26
public
function
setOption
(
string
$optionId, $value): void
27
{
28
$this->options[$optionId] = $value;
29
}
30
31
public
function
getOptions
(): array
32
{
33
return
$this->options;
34
}
35
}
Bitrix\Sale\Services\Base\RestrictionInfo
Definition
restrictioninfo.php:6
Bitrix\Sale\Services\Base\RestrictionInfo\getOptions
getOptions()
Definition
restrictioninfo.php:31
Bitrix\Sale\Services\Base\RestrictionInfo\getType
getType()
Definition
restrictioninfo.php:16
Bitrix\Sale\Services\Base\RestrictionInfo\setOption
setOption(string $optionId, $value)
Definition
restrictioninfo.php:26
Bitrix\Sale\Services\Base\RestrictionInfo\getOption
getOption(string $optionId)
Definition
restrictioninfo.php:21
Bitrix\Sale\Services\Base\RestrictionInfo\__construct
__construct(string $restrictionType, array $options=[])
Definition
restrictioninfo.php:10
Bitrix\Sale\Services\Base
Definition
concreteproductrestriction.php:3
modules
sale
lib
services
base
restrictioninfo.php
Создано системой
1.10.0