Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
updatecontactdtocollection.php
1
<?php
2
3
namespace
Bitrix\Sender\Internals\Dto
;
4
8
class
UpdateContactDtoCollection
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
}
Bitrix\Sender\Internals\Dto\UpdateContactDTO
Definition
updatecontactdto.php:8
Bitrix\Sender\Internals\Dto\UpdateContactDtoCollection
Definition
updatecontactdtocollection.php:9
Bitrix\Sender\Internals\Dto\UpdateContactDtoCollection\append
append(UpdateContactDTO $item)
Definition
updatecontactdtocollection.php:22
Bitrix\Sender\Internals\Dto\UpdateContactDtoCollection\toArray
toArray()
Definition
updatecontactdtocollection.php:41
Bitrix\Sender\Internals\Dto\UpdateContactDtoCollection\count
count()
Definition
updatecontactdtocollection.php:50
Bitrix\Sender\Internals\Dto\UpdateContactDtoCollection\all
all()
Definition
updatecontactdtocollection.php:32
Bitrix\Sender\Internals\Dto
Definition
updatecontactdto.php:3
modules
sender
lib
internals
dto
updatecontactdtocollection.php
Создано системой
1.10.0