1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
GetExecutionTimeResponse.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Bizproc\Api\Response\WorkflowStateService;
4
5
use Bitrix\Bizproc\Result;
6
use Bitrix\Bizproc\UI\Helpers\DurationFormatter;
7
8
class
GetExecutionTimeResponse
extends
Result
9
{
10
public
function
setExecutionTime
(
int
$executionTime): static
11
{
12
$this->data[
'executionTime'
] = $executionTime;
13
14
return
$this;
15
}
16
17
public
function
getExecutionTime
(): ?int
18
{
19
$executionTime = $this->data[
'executionTime'
] ??
null
;
20
21
return
is_int($executionTime) ? $executionTime :
null
;
22
}
23
24
public
function
getRoundedExecutionTime
(): ?int
25
{
26
$executionTime = $this->
getExecutionTime
();
27
if
($executionTime ===
null
)
28
{
29
return
null
;
30
}
31
32
return
DurationFormatter::roundTimeInSeconds($executionTime);
33
}
34
}
Bitrix\Bizproc\Api\Response\WorkflowStateService\GetExecutionTimeResponse
Определения
GetExecutionTimeResponse.php:9
Bitrix\Bizproc\Api\Response\WorkflowStateService\GetExecutionTimeResponse\setExecutionTime
setExecutionTime(int $executionTime)
Определения
GetExecutionTimeResponse.php:10
Bitrix\Bizproc\Api\Response\WorkflowStateService\GetExecutionTimeResponse\getExecutionTime
getExecutionTime()
Определения
GetExecutionTimeResponse.php:17
Bitrix\Bizproc\Api\Response\WorkflowStateService\GetExecutionTimeResponse\getRoundedExecutionTime
getRoundedExecutionTime()
Определения
GetExecutionTimeResponse.php:24
Bitrix\Bizproc\Result
Определения
DeviceResultHandler.php:3
bitrix
modules
bizproc
lib
Api
Response
WorkflowStateService
GetExecutionTimeResponse.php
Создано системой
1.14.0