Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
RemoveResult.php
1<?php
2
4
5class RemoveResult extends \Bitrix\Main\Result implements \JsonSerializable
6{
8 protected $id;
9
10 public function __construct($id)
11 {
12 $this->id = $id;
13
14 parent::__construct();
15 }
16
17 public function getId()
18 {
19 return $this->id;
20 }
21
22 public function jsonSerialize(): array
23 {
24 return [
25 'id' => $this->getId(),
26 'errors' => $this->getErrors(),
27 'success' => $this->isSuccess(),
28 ];
29 }
30}