1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
restrictioninfo.php
См. документацию.
1<?php
2
3namespace Bitrix\Sale\Services\Base;
4
5final 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}
setOption(string $optionId, $value)
Определения restrictioninfo.php:26
getOption(string $optionId)
Определения restrictioninfo.php:21
__construct(string $restrictionType, array $options=[])
Определения restrictioninfo.php:10
$options
Определения commerceml2.php:49
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804