Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
sendertype.php
1<?
2
4
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