Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
updatecontactdtocollection.php
1<?php
2
4
9{
13 private array $items = [];
14
22 public function append(UpdateContactDTO $item): self {
23 $this->items[] = $item;
24 return $this;
25 }
26
32 public function all(): array {
33 return $this->items;
34 }
35
41 public function toArray(): array {
42 return array_map(fn(UpdateContactDTO $item) => $item->toArray(), $this->items);
43 }
44
50 public function count(): int {
51 return count($this->items);
52 }
53}