1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
grouplink.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Sharing\Link;
4
5use Bitrix\Calendar\Sharing\Link\Joint\JointLink;
6
7final class GroupLink extends JointLink
8{
9 private ?int $hostId = null;
10 private int $slotSize = 60;
11 protected ?Rule\Rule $sharingRule = null;
12
13 public function getOwnerId(): int
14 {
15 return $this->getObjectId();
16 }
17
18 public function setGroupId(int $id): static
19 {
20 $this->setObjectId($id);
21
22 return $this;
23 }
24
25 public function getGroupId(): int
26 {
27 return $this->getObjectId();
28 }
29
30 public function setHostId(int $hostId): self
31 {
32 $this->hostId = $hostId;
33
34 return $this;
35 }
36
37 public function getHostId(): ?int
38 {
39 return $this->hostId ?? null;
40 }
41
42 public function getObjectType(): string
43 {
44 return Helper::GROUP_SHARING_TYPE;
45 }
46
47 public function getSharingRule(): ?Rule\Rule
48 {
49 return $this->sharingRule;
50 }
51
52 public function setSharingRule(?Rule\Rule $sharingRule): self
53 {
54 $this->sharingRule = $sharingRule;
55
56 return $this;
57 }
58
59 public function getSlotSize(): int
60 {
61 return $this->slotSize;
62 }
63
64 public function setSlotSize(int $minutes): static
65 {
66 $this->slotSize = $minutes;
67
68 return $this;
69 }
70}