Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
GetListResponse.php
1
<?php
2
3
namespace
Bitrix\Bizproc\Api\Response\WorkflowStateService
;
4
5
use Bitrix\Bizproc\Workflow\Entity\EO_WorkflowState_Collection;
6
use
Bitrix\Main\Result
;
7
8
class
GetListResponse
extends
Result
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
}
Bitrix\Bizproc\Api\Response\WorkflowStateService\GetListResponse
Definition
GetListResponse.php:9
Bitrix\Bizproc\Api\Response\WorkflowStateService\GetListResponse\setWorkflowStatesCollection
setWorkflowStatesCollection(EO_WorkflowState_Collection $workflowStates)
Definition
GetListResponse.php:20
Bitrix\Bizproc\Api\Response\WorkflowStateService\GetListResponse\getTotalCount
getTotalCount()
Definition
GetListResponse.php:15
Bitrix\Bizproc\Api\Response\WorkflowStateService\GetListResponse\getWorkflowStatesCollection
getWorkflowStatesCollection()
Definition
GetListResponse.php:10
Bitrix\Bizproc\Api\Response\WorkflowStateService\GetListResponse\setTotalCount
setTotalCount(int $totalCount)
Definition
GetListResponse.php:27
Bitrix\Bizproc\Result
Definition
result.php:6
Bitrix\Main\ORM\Data\Result
Definition
result.php:16
Bitrix\Bizproc\Api\Response\WorkflowStateService
Definition
GetAverageWorkflowDurationResponse.php:3
modules
bizproc
lib
Api
Response
WorkflowStateService
GetListResponse.php
Создано системой
1.10.0