Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
project.php
1<?php
2
4
6{
7 public const ASSIGNMENTS_ISSUING_TYPE_AUTOMATED = 'AUTOMATED';
8 public const ASSIGNMENTS_ISSUING_TYPE_MAP_SELECTOR = 'MAP_SELECTOR';
9
10 public const STATUS_ACTIVE = 'ACTIVE';
11 public const STATUS_ARCHIVE = 'ARCHIVE';
12
16 private $publicName;
17
21 private $publicDescription;
22
26 private $publicInstructions;
27
31 private $privateComment;
32
36 private $taskSpec;
37
41 private $assignmentsIssuingType = self::ASSIGNMENTS_ISSUING_TYPE_AUTOMATED;
42
46 private $assignmentsIssuingViewConfig;
47
51 private $qualityControl;
52
56 private $id;
57
61 private $status = self::STATUS_ACTIVE;
62
66 private $created;
67
71 public function getPublicInstructions(): string
72 {
73 return $this->publicInstructions;
74 }
75
81 public function setPublicInstructions(string $publicInstructions): Project
82 {
83 $this->publicInstructions = $publicInstructions;
84
85 return $this;
86 }
87
91 public function getPrivateComment(): string
92 {
93 return $this->privateComment;
94 }
95
101 public function setPrivateComment(string $privateComment): Project
102 {
103 $this->privateComment = $privateComment;
104
105 return $this;
106 }
107
111 public function getTaskSpec(): TaskSpec
112 {
113 return $this->taskSpec;
114 }
115
121 public function setTaskSpec(TaskSpec $taskSpec): Project
122 {
123 $this->taskSpec = $taskSpec;
124
125 return $this;
126 }
127
132 {
133 return $this->assignmentsIssuingViewConfig;
134 }
135
141 public function setAssignmentsIssuingViewConfig(ViewConfig $assignmentsIssuingViewConfig): Project
142 {
143 $this->assignmentsIssuingViewConfig = $assignmentsIssuingViewConfig;
144
145 return $this;
146 }
147
152 {
153 return $this->qualityControl;
154 }
155
161 public function setQualityControl(QualityControl $qualityControl): Project
162 {
163 $this->qualityControl = $qualityControl;
164
165 return $this;
166 }
167
171 public function getId(): ?int
172 {
173 return $this->id;
174 }
175
181 public function setId(int $id): Project
182 {
183 $this->id = $id;
184
185 return $this;
186 }
187
191 public function getStatus(): string
192 {
193 return $this->status;
194 }
195
201 public function setStatus(string $status): Project
202 {
203 $this->status = $status;
204
205 return $this;
206 }
207
211 public function getCreated(): string
212 {
213 return $this->created;
214 }
215
221 public function setCreated(string $created): Project
222 {
223 $this->created = $created;
224
225 return $this;
226 }
227
228 public function toArray():array
229 {
230 return [
231 'public_name' => $this->publicName,
232 'public_description' => $this->publicDescription,
233 'public_instruction' => $this->publicInstructions,
234 'task_spec' => $this->taskSpec->toArray(),
235 'assignments_issuing_type' => $this->assignmentsIssuingType
236 ];
237 }
238
242 public function getPublicName(): string
243 {
244 return $this->publicName;
245 }
246
252 public function setPublicName(string $publicName): Project
253 {
254 $this->publicName = $publicName;
255
256 return $this;
257 }
258
262 public function getPublicDescription(): string
263 {
264 return $this->publicDescription;
265 }
266
272 public function setPublicDescription(string $publicDescription): Project
273 {
274 $this->publicDescription = $publicDescription;
275
276 return $this;
277 }
278
282 public function getAssignmentsIssuingType(): string
283 {
284 return $this->assignmentsIssuingType;
285 }
286
292 public function setAssignmentsIssuingType(string $assignmentsIssuingType): Project
293 {
294 $this->assignmentsIssuingType = $assignmentsIssuingType;
295
296 return $this;
297 }
298}
setAssignmentsIssuingViewConfig(ViewConfig $assignmentsIssuingViewConfig)
Definition project.php:141
setPublicDescription(string $publicDescription)
Definition project.php:272
setQualityControl(QualityControl $qualityControl)
Definition project.php:161
setAssignmentsIssuingType(string $assignmentsIssuingType)
Definition project.php:292
setPublicInstructions(string $publicInstructions)
Definition project.php:81