1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
sendertype.php
См. документацию.
1<?
2
3namespace Bitrix\Pull\Protobuf;
4
10
11
15class 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
const CLIENT_VALUE
Определения sendertype.php:26
static $UNKNOWN
Определения sendertype.php:36
static $BACKEND
Определения sendertype.php:46
const UNKNOWN_VALUE
Определения sendertype.php:21
static CLIENT()
Определения sendertype.php:63
static BACKEND()
Определения sendertype.php:75
const BACKEND_VALUE
Определения sendertype.php:31
static UNKNOWN()
Определения sendertype.php:51
static valueOf($value)
Определения sendertype.php:88