1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Parameterizable.php
См. документацию.
1<?php
2
3namespace Bitrix\MessageService\Restriction;
4
5use Bitrix\MessageService\Internal\Entity\RestrictionTable;
6
8{
9 abstract protected function getCurrentAdditionalParam(): string;
10 protected function insertCounter(): void
11 {
12 RestrictionTable::insertCounterWithParam($this->getEntityId(), $this->getCurrentAdditionalParam());
13 }
14
15 protected function updateCounter(): bool
16 {
17 if (in_array($this->getCurrentAdditionalParam(), $this->additionalParams))
18 {
19 return true;
20 }
21
22 return RestrictionTable::updateCounterWithParam($this->getEntityId(), $this->limit, $this->getCurrentAdditionalParam());
23 }
24}