Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
providercollection.php
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Internals\Space\Counter
;
4
5
class
ProviderCollection
implements
\IteratorAggregate, \Countable
6
{
8
private
array $providers;
9
10
public
function
__construct
(
ProviderInterface
...$providers)
11
{
12
$this->providers = $providers;
13
}
14
18
public
function
getIterator
(): \ArrayIterator
19
{
20
return
new \ArrayIterator($this->providers);
21
}
22
23
public
function
add
(
ProviderInterface
$provider): void
24
{
25
$this->providers[] = $provider;
26
}
27
28
public
function
isEmpty
(): bool
29
{
30
return
empty($this->providers);
31
}
32
33
public
function
count
(): int
34
{
35
return
count
($this->providers);
36
}
37
}
Bitrix\Socialnetwork\Internals\Space\Counter\ProviderCollection
Definition
providercollection.php:6
Bitrix\Socialnetwork\Internals\Space\Counter\ProviderCollection\add
add(ProviderInterface $provider)
Definition
providercollection.php:23
Bitrix\Socialnetwork\Internals\Space\Counter\ProviderCollection\__construct
__construct(ProviderInterface ... $providers)
Definition
providercollection.php:10
Bitrix\Socialnetwork\Internals\Space\Counter\ProviderCollection\getIterator
getIterator()
Definition
providercollection.php:18
Bitrix\Socialnetwork\Internals\Space\Counter\ProviderCollection\count
count()
Definition
providercollection.php:33
Bitrix\Socialnetwork\Internals\Space\Counter\ProviderCollection\isEmpty
isEmpty()
Definition
providercollection.php:28
Bitrix\Socialnetwork\Internals\Space\Counter\ProviderInterface
Definition
providerinterface.php:6
Bitrix\Socialnetwork\Internals\Space\Counter
Definition
dictionary.php:3
modules
socialnetwork
lib
internals
space
counter
providercollection.php
Создано системой
1.10.0