Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Result.php
1<?php
2
3namespace Bitrix\Im\V2;
4
9{
10 protected bool $hasResult = false;
11
17 public function setResult($result): self
18 {
19 $this->hasResult = true;
20 return parent::setData(['RESULT' => $result]);
21 }
22
27 public function getResult()
28 {
29 return parent::getData()['RESULT'] ?? null;
30 }
31
36 public function hasResult(): bool
37 {
38 return $this->isSuccess() && $this->hasResult;
39 }
40}
setResult($result)
Definition Result.php:17