1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
RegistryEntryImplementation.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2\Common;
4
5use Bitrix\Im\V2\Registry;
6use Bitrix\Im\V2\ActiveRecord;
7
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}
trait RegistryEntryImplementation
Определения RegistryEntryImplementation.php:12
setRegistry(Registry $registry)
Определения RegistryEntryImplementation.php:19