Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
RegistryEntryImplementation.php
1<?php
2
3namespace Bitrix\Im\V2\Common;
4
7
11trait 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}