Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
GetAverageWorkflowDurationResponse.php
1<?php
2
4
6
8{
9 public function setAverageDuration(int $averageDuration): static
10 {
11 $this->data['averageDuration'] = $averageDuration;
12
13 return $this;
14 }
15
16 public function getAverageDuration(): ?int
17 {
18 $averageTime = $this->data['averageDuration'] ?? null;
19
20 return is_int($averageTime) ? $averageTime : null;
21 }
22}