1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
GroupItemCollection.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2\Notification\Group;
4
5class GroupItemCollection implements \IteratorAggregate, \Countable
6{
8 private array $items;
9
13 public function __construct(GroupItem ...$items)
14 {
15 $this->items = $items;
16 }
17
18 public function getIterator(): \ArrayIterator
19 {
20 return new \ArrayIterator($this->items);
21 }
22
23 public function count(): int
24 {
25 return count($this->items);
26 }
27
28 public function toRestFormat(): array
29 {
30 return array_map(fn(GroupItem $item): array => $item->toRestFormat(), $this->items);
31 }
32
36 public function getAll(): array
37 {
38 return $this->items;
39 }
40}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$items
Определения template.php:224