Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
crmdeallink.php
1<?php
2
4
6
7class CrmDealLink extends JointLink
8{
10 private int $slotSize = 60;
12 private int $ownerId;
14 private ?int $contactId = null;
16 private ?int $contactType = null;
18 private ?string $channelId = null;
20 private ?string $senderId = null;
22 private ?string $lastStatus = null;
24 protected ?Rule\Rule $sharingRule = null;
25
26 public function getObjectType(): string
27 {
29 }
30
31 public function getSlotSize(): int
32 {
33 return $this->slotSize;
34 }
35
36 public function getEntityId(): int
37 {
38 return $this->getObjectId();
39 }
40
41 public function getContactId(): ?int
42 {
43 return $this->contactId;
44 }
45
46 public function getContactType(): ?int
47 {
48 return $this->contactType;
49 }
50
51 public function getOwnerId(): int
52 {
53 return $this->ownerId;
54 }
55
56 public function getChannelId(): ?string
57 {
58 return $this->channelId;
59 }
60
61 public function getSenderId(): ?string
62 {
63 return $this->senderId;
64 }
65
66 public function getLastStatus(): ?string
67 {
68 return $this->lastStatus;
69 }
70
71 public function setSlotSize(int $minutes): static
72 {
73 $this->slotSize = $minutes;
74
75 return $this;
76 }
77
78 public function setEntityId(int $id): static
79 {
80 return $this->setObjectId($id);
81 }
82
83 public function setContactId(?int $contactId): static
84 {
85 $this->contactId = $contactId;
86
87 return $this;
88 }
89
90 public function setContactType(?int $contactType): static
91 {
92 $this->contactType = $contactType;
93
94 return $this;
95 }
96
97 public function setOwnerId(int $ownerId): static
98 {
99 $this->ownerId = $ownerId;
100
101 return $this;
102 }
103
104 public function setChannelId(?string $channelId): static
105 {
106 $this->channelId = $channelId;
107
108 return $this;
109 }
110
111 public function setSenderId(?string $senderId): static
112 {
113 $this->senderId = $senderId;
114
115 return $this;
116 }
117
118 public function setLastStatus(?string $lastStatus): static
119 {
120 $this->lastStatus = $lastStatus;
121
122 return $this;
123 }
124
125 public function getSharingRule(): ?Rule\Rule
126 {
127 return $this->sharingRule;
128 }
129
130 public function setSharingRule(?Rule\Rule $sharingRule): self
131 {
132 $this->sharingRule = $sharingRule;
133
134 return $this;
135 }
136}