Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sendertype.php
1
<?
2
3
namespace
Bitrix\Pull\Protobuf
;
4
15
class
SenderType
extends
\Protobuf\Enum
16
{
17
21
const
UNKNOWN_VALUE
= 0;
22
26
const
CLIENT_VALUE
= 1;
27
31
const
BACKEND_VALUE
= 2;
32
36
protected
static
$UNKNOWN
=
null
;
37
41
protected
static
$CLIENT
=
null
;
42
46
protected
static
$BACKEND
=
null
;
47
51
public
static
function
UNKNOWN
()
52
{
53
if
(self::$UNKNOWN !==
null
) {
54
return
self::$UNKNOWN
;
55
}
56
57
return
self::$UNKNOWN =
new
self
(
'UNKNOWN'
,
self::UNKNOWN_VALUE
);
58
}
59
63
public
static
function
CLIENT
()
64
{
65
if
(self::$CLIENT !==
null
) {
66
return
self::$CLIENT
;
67
}
68
69
return
self::$CLIENT =
new
self
(
'CLIENT'
,
self::CLIENT_VALUE
);
70
}
71
75
public
static
function
BACKEND
()
76
{
77
if
(self::$BACKEND !==
null
) {
78
return
self::$BACKEND
;
79
}
80
81
return
self::$BACKEND =
new
self
(
'BACKEND'
,
self::BACKEND_VALUE
);
82
}
83
88
public
static
function
valueOf
($value)
89
{
90
switch
($value) {
91
case
0:
return
self::UNKNOWN
();
92
case
1:
return
self::CLIENT
();
93
case
2:
return
self::BACKEND
();
94
default
:
return
null
;
95
}
96
}
97
98
99
}
100
Bitrix\Pull\Protobuf\SenderType
Definition
sendertype.php:16
Bitrix\Pull\Protobuf\SenderType\CLIENT_VALUE
const CLIENT_VALUE
Definition
sendertype.php:26
Bitrix\Pull\Protobuf\SenderType\$UNKNOWN
static $UNKNOWN
Definition
sendertype.php:36
Bitrix\Pull\Protobuf\SenderType\$BACKEND
static $BACKEND
Definition
sendertype.php:46
Bitrix\Pull\Protobuf\SenderType\$CLIENT
static $CLIENT
Definition
sendertype.php:41
Bitrix\Pull\Protobuf\SenderType\UNKNOWN_VALUE
const UNKNOWN_VALUE
Definition
sendertype.php:21
Bitrix\Pull\Protobuf\SenderType\CLIENT
static CLIENT()
Definition
sendertype.php:63
Bitrix\Pull\Protobuf\SenderType\BACKEND
static BACKEND()
Definition
sendertype.php:75
Bitrix\Pull\Protobuf\SenderType\BACKEND_VALUE
const BACKEND_VALUE
Definition
sendertype.php:31
Bitrix\Pull\Protobuf\SenderType\UNKNOWN
static UNKNOWN()
Definition
sendertype.php:51
Bitrix\Pull\Protobuf\SenderType\valueOf
static valueOf($value)
Definition
sendertype.php:88
Bitrix\Pull\Protobuf
Definition
channelid.php:3
modules
pull
lib
protobuf
sendertype.php
Создано системой
1.10.0