Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
GetListResponse.php
1<?php
2
4
5use Bitrix\Bizproc\Workflow\Entity\EO_WorkflowState_Collection;
7
9{
10 public function getWorkflowStatesCollection(): ?EO_WorkflowState_Collection
11 {
12 return $this->data['collection'] ?? null;
13 }
14
15 public function getTotalCount(): int
16 {
17 return $this->data['totalCount'] ?? $this->getWorkflowStatesCollection()->count();
18 }
19
20 public function setWorkflowStatesCollection(EO_WorkflowState_Collection $workflowStates): static
21 {
22 $this->data['collection'] = $workflowStates;
23
24 return $this;
25 }
26
27 public function setTotalCount(int $totalCount): static
28 {
29 $this->data['totalCount'] = $totalCount;
30
31 return $this;
32 }
33}
setWorkflowStatesCollection(EO_WorkflowState_Collection $workflowStates)