Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
ActionUuid.php
1<?php
2
3namespace Bitrix\Im\V2;
4
6
8{
9 private static ?self $instance = null;
10
11 private ?string $value = null;
12
13 private function __construct()
14 {
15 }
16
17 public static function getInstance(): self
18 {
19 self::$instance ??= new static();
20
21 return self::$instance;
22 }
23
24 public function getValue(): ?string
25 {
26 return $this->value;
27 }
28
29 public function setValue(string $value): self
30 {
31 if (Uuid::validate($value))
32 {
33 $this->value = $value;
34 }
35
36 return $this;
37 }
38}
static validate(string $uuid)
Definition Uuid.php:87
setValue(string $value)