Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
RegistryEntryImplementation.php
1
<?php
2
3
namespace
Bitrix\Im\V2\Common
;
4
5
use
Bitrix\Im\V2\Registry
;
6
use
Bitrix\Im\V2\ActiveRecord
;
7
11
trait RegistryEntryImplementation
12
{
13
protected
?
Registry
$registry =
null
;
14
19
public
function
setRegistry
(
Registry
$registry): self
20
{
21
$this->registry = $registry;
22
23
if
(
24
$this instanceof
ActiveRecord
25
&& $this->getPrimaryId()
26
)
27
{
28
$this->registry[$this->getPrimaryId()] = $this;
29
}
30
31
return
$this;
32
}
33
38
public
function
getRegistry
(): ?
Registry
39
{
40
return
$this->registry;
41
}
42
}
Bitrix\Im\V2\Registry
Definition
Registry.php:9
Bitrix\Im\V2\ActiveRecord
Definition
ActiveRecord.php:8
Bitrix\Im\V2\Common
Definition
ActiveRecordImplementation.php:3
Bitrix\Im\V2\Common\getRegistry
getRegistry()
Definition
RegistryEntryImplementation.php:38
Bitrix\Im\V2\Common\setRegistry
setRegistry(Registry $registry)
Definition
RegistryEntryImplementation.php:19
modules
im
lib
V2
Common
RegistryEntryImplementation.php
Создано системой
1.10.0