Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
SmsPerPhone.php
1
<?php
2
3
namespace
Bitrix\MessageService\Restriction
;
4
5
class
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
}
Bitrix\MessageService\Restriction\Base
Definition
Base.php:12
Bitrix\MessageService\Restriction\SmsPerPhone
Definition
SmsPerPhone.php:6
Bitrix\MessageService\Restriction\SmsPerPhone\getEntityId
getEntityId()
Definition
SmsPerPhone.php:8
Bitrix\MessageService\Restriction\SmsPerPhone\getEntity
getEntity()
Definition
SmsPerPhone.php:18
Bitrix\MessageService\Restriction\SmsPerPhone\getDefaultLimit
getDefaultLimit()
Definition
SmsPerPhone.php:23
Bitrix\MessageService\Restriction\SmsPerPhone\getOptionLimitName
getOptionLimitName()
Definition
SmsPerPhone.php:13
Bitrix\MessageService\Restriction
Definition
Base.php:3
modules
messageservice
lib
Restriction
SmsPerPhone.php
Создано системой
1.10.0