Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
FileOwnershipCollection.php
1<?php
2
4
5class FileOwnershipCollection implements \IteratorAggregate
6{
8 private array $items = [];
9
10 public function __construct(array $ids)
11 {
12 foreach ($ids as $id)
13 {
14 $this->items[] = new FileOwnership($id);
15 }
16 }
17
21 public function getAll(): array
22 {
23 return $this->items;
24 }
25
26 public function count(): int
27 {
28 return count($this->items);
29 }
30
34 public function getIterator(): \ArrayIterator
35 {
36 return new \ArrayIterator($this->items);
37 }
38}