Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
recepientcollection.php
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Internals\EventService\Recepients
;
4
5
class
RecepientCollection
implements
\Iterator, \Countable
6
{
8
private
array $recepients;
9
10
public
function
__construct
(
Recepient
...$recepients)
11
{
12
$this->recepients = $recepients;
13
}
14
15
public
function
add
(
Recepient
$recepient): void
16
{
17
$this->recepients[] = $recepient;
18
}
19
20
public
function
count
(): int
21
{
22
return
count
($this->recepients);
23
}
24
25
public
function
current
():
Recepient
26
{
27
return
current
($this->recepients);
28
}
29
30
public
function
next
(): void
31
{
32
next
($this->recepients);
33
}
34
35
public
function
key
(): mixed
36
{
37
return
key
($this->recepients);
38
}
39
40
public
function
valid
(): bool
41
{
42
$key =
key
($this->recepients);
43
return
($key !==
null
&& $key !==
false
);
44
}
45
46
public
function
rewind
(): void
47
{
48
reset($this->recepients);
49
}
50
}
Bitrix\Socialnetwork\Internals\EventService\Recepients\RecepientCollection
Definition
recepientcollection.php:6
Bitrix\Socialnetwork\Internals\EventService\Recepients\RecepientCollection\__construct
__construct(Recepient ... $recepients)
Definition
recepientcollection.php:10
Bitrix\Socialnetwork\Internals\EventService\Recepients\RecepientCollection\add
add(Recepient $recepient)
Definition
recepientcollection.php:15
Bitrix\Socialnetwork\Internals\EventService\Recepients\RecepientCollection\key
key()
Definition
recepientcollection.php:35
Bitrix\Socialnetwork\Internals\EventService\Recepients\RecepientCollection\valid
valid()
Definition
recepientcollection.php:40
Bitrix\Socialnetwork\Internals\EventService\Recepients\RecepientCollection\count
count()
Definition
recepientcollection.php:20
Bitrix\Socialnetwork\Internals\EventService\Recepients\RecepientCollection\next
next()
Definition
recepientcollection.php:30
Bitrix\Socialnetwork\Internals\EventService\Recepients\RecepientCollection\rewind
rewind()
Definition
recepientcollection.php:46
Bitrix\Socialnetwork\Internals\EventService\Recepients\RecepientCollection\current
current()
Definition
recepientcollection.php:25
Bitrix\Socialnetwork\Internals\EventService\Recepients\Recepient
Definition
recepient.php:6
Bitrix\Socialnetwork\Internals\EventService\Recepients
Definition
recepient.php:3
modules
socialnetwork
lib
internals
eventservice
recepients
recepientcollection.php
Создано системой
1.10.0