1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
lessthenorequaloperator.php
См. документацию.
1<?php
2
3namespace Bitrix\Bizproc\Activity\Operator;
4
5use Bitrix\Bizproc\FieldType;
6use Bitrix\Main\Localization\Loc;
7
9{
10 public static function getCode(): string
11 {
12 return '<=';
13 }
14
15 public static function getTitle(): string
16 {
17 return Loc::getMessage('BIZPROC_ACTIVITY_CONDITION_OPERATORS_LESS_THEN_OR_EQUAL_OPERATOR_TITLE') ?? '';
18 }
19
20 protected function compare($toCheck, $value): bool
21 {
22 $typeClass = $this->fieldType->getTypeClass();
23
24 return $typeClass::compareValues($toCheck, $value) <= 0;
25 }
26}