Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
userlink.php
1<?php
3
5
6class UserLink extends JointLink
7{
8 private int $slotSize = 60;
9 protected ?Rule\Rule $sharingRule = null;
10
11 public function getObjectType(): string
12 {
14 }
15
16 public function getSlotSize(): int
17 {
18 return $this->slotSize;
19 }
20
21 public function getUserId(): int
22 {
23 return $this->getObjectId();
24 }
25
26 public function setSlotSize(int $minutes): static
27 {
28 $this->slotSize = $minutes;
29
30 return $this;
31 }
32
33 public function setUserId(int $id): static
34 {
35 return $this->setObjectId($id);
36 }
37
38 public function getSharingRule(): ?Rule\Rule
39 {
40 return $this->sharingRule;
41 }
42
43 public function setSharingRule(?Rule\Rule $sharingRule): self
44 {
45 $this->sharingRule = $sharingRule;
46
47 return $this;
48 }
49
50 public function getOwnerId(): int
51 {
52 return $this->getObjectId();
53 }
54}