Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
RemoveResultCollection.php
1<?php
2
4
5class RemoveResultCollection implements \IteratorAggregate, \JsonSerializable
6{
8 private array $results = [];
9
10 public function add(RemoveResult $result): void
11 {
12 $this->results[] = $result;
13 }
14
18 public function getAll(): array
19 {
20 return $this->results;
21 }
22
26 public function getIterator(): \ArrayIterator
27 {
28 return new \ArrayIterator($this->results);
29 }
30
31 public function jsonSerialize(): array
32 {
33 return $this->getAll();
34 }
35}