Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
SmsPerPhone.php
1<?php
2
4
5class SmsPerPhone extends Base
6{
7
8 public function getEntityId(): string
9 {
10 return 'spp_' . $this->getEntity();
11 }
12
13 protected function getOptionLimitName(): string
14 {
15 return 'network_restriction_sms_per_phone';
16 }
17
18 protected function getEntity(): string
19 {
20 return $this->message->getTo();
21 }
22
23 protected function getDefaultLimit(): int
24 {
25 return 6;
26 }
27}