1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Relation.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Relation\Item;
4
5use Bitrix\Main\Type\Contract\Arrayable;
6
7class Relation implements Arrayable
8{
9 private ?Entity $entity = null;
10 private ?Owner $owner = null;
11
12 public function __construct(private int $eventId)
13 {}
14
15 public function getEventId(): int
16 {
17 return $this->eventId;
18 }
19
20 public function getEntity(): ?Entity
21 {
22 return $this->entity;
23 }
24
25 public function setEntity(Entity $entity): self
26 {
27 $this->entity = $entity;
28
29 return $this;
30 }
31
32 public function getOwner(): ?Owner
33 {
34 return $this->owner;
35 }
36
37 public function setOwner(Owner $owner): self
38 {
39 $this->owner = $owner;
40
41 return $this;
42 }
43
44 public function toArray(): array
45 {
46 return [
47 'eventId' => $this->eventId,
48 'owner' => $this->owner?->toArray(),
49 'entity' => $this->entity?->toArray(),
50 ];
51 }
52}
setEntity(Entity $entity)
Определения Relation.php:25
setOwner(Owner $owner)
Определения Relation.php:37
__construct(private int $eventId)
Определения Relation.php:12
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$entity