1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
GetDataByStepsResponse.php
См. документацию.
1<?php
2
4
9
10final class GetDataByStepsResponse extends Result
11{
12 public function setAuthorStep(Step $step): self
13 {
14 $this->data['authorStep'] = $step;
15
16 return $this;
17 }
18
19 public function getAuthorStep(): ?Step
20 {
21 return $this->data['authorStep'] ?? null;
22 }
23
24 public function setProgressBox(ProgressBox $box): self
25 {
26 $this->data['progressBox'] = $box;
27
28 return $this;
29 }
30
31 public function getProgressBox(): ?ProgressBox
32 {
33 return $this->data['progressBox'] ?? null;
34 }
35
36 public function setCompletedStep(Step $step): self
37 {
38 $this->data['completedStep'] = $step;
39
40 return $this;
41 }
42
43 public function getCompletedStep(): ?Step
44 {
45 return $this->data['completedStep'] ?? null;
46 }
47
48 public function setDoneStep(Step $step): self
49 {
50 $this->data['doneStep'] = $step;
51
52 return $this;
53 }
54
55 public function getDoneStep(): ?Step
56 {
57 return $this->data['doneStep'] ?? null;
58 }
59
60 public function setRunningStep(Step $step): self
61 {
62 $this->data['runningStep'] = $step;
63
64 return $this;
65 }
66
67 public function getRunningStep(): ?Step
68 {
69 return $this->data['runningStep'] ?? null;
70 }
71
72 public function setFirstStep(Step $step): self
73 {
74 $this->data['firstStep'] = $step;
75
76 return $this;
77 }
78
79 public function getFirstStep(): ?Step
80 {
81 return $this->data['firstStep'] ?? null;
82 }
83
84 public function setSecondStep(Step $step): self
85 {
86 $this->data['secondStep'] = $step;
87
88 return $this;
89 }
90
91 public function getSecondStep(): ?Step
92 {
93 return $this->data['secondStep'] ?? null;
94 }
95
96 public function setThirdStep(Step $step): self
97 {
98 $this->data['thirdStep'] = $step;
99
100 return $this;
101 }
102
103 public function getThirdStep(): ?Step
104 {
105 return $this->data['thirdStep'] ?? null;
106 }
107
111 public function getSteps(): array
112 {
113 return [$this->getFirstStep(), $this->getSecondStep(), $this->getThirdStep()];
114 }
115
116 public function setTimeStep(Step $step): self
117 {
118 $this->data['timeStep'] = $step;
119
120 return $this;
121 }
122
123 public function getTimeStep(): ?Step
124 {
125 return $this->data['timeStep'] ?? null;
126 }
127
128 public function getUniqueUserIds(): array
129 {
130 $steps = $this->getSteps();
131 $userIds = [];
132 foreach ($steps as $step)
133 {
134 if ($step?->getAvatars())
135 {
136 $userIds[] = $step->getAvatars();
137 }
138 }
139
140 if ($userIds)
141 {
142 $userIds = array_merge(...$userIds);
143 Collection::normalizeArrayValuesByInt($userIds);
144 }
145
146 return $userIds;
147 }
148
149 public function setIsWorkflowFinished(bool $isFinished): self
150 {
151 $this->data['isWorkflowFinished'] = $isFinished;
152
153 return $this;
154 }
155
156 public function getIsWorkflowFinished(): bool
157 {
158 $isWorkflowFinished = $this->data['isWorkflowFinished'] ?? false;
159
160 return is_bool($isWorkflowFinished) ? $isWorkflowFinished : false;
161 }
162}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804