Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
inmemoryprovider.php
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Internals\Space\Counter
;
4
5
class
InMemoryProvider
implements
ProviderInterface
6
{
7
public
const
METRICS_PLAIN
=
'InMemoryProviderPlainMetrics'
;
8
9
public
function
getTotal
(
int
$spaceId = 0): int
10
{
11
return
10;
12
}
13
14
public
function
getValue
(
int
$spaceId = 0, array $metrics = []): int
15
{
16
return
1;
17
}
18
19
public
function
getAvailableMetrics
(): array
20
{
21
return
[
22
self::METRICS_PLAIN
,
23
];
24
}
25
}
Bitrix\Socialnetwork\Internals\Space\Counter\InMemoryProvider
Definition
inmemoryprovider.php:6
Bitrix\Socialnetwork\Internals\Space\Counter\InMemoryProvider\getValue
getValue(int $spaceId=0, array $metrics=[])
Definition
inmemoryprovider.php:14
Bitrix\Socialnetwork\Internals\Space\Counter\InMemoryProvider\METRICS_PLAIN
const METRICS_PLAIN
Definition
inmemoryprovider.php:7
Bitrix\Socialnetwork\Internals\Space\Counter\InMemoryProvider\getTotal
getTotal(int $spaceId=0)
Definition
inmemoryprovider.php:9
Bitrix\Socialnetwork\Internals\Space\Counter\InMemoryProvider\getAvailableMetrics
getAvailableMetrics()
Definition
inmemoryprovider.php:19
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
inmemoryprovider.php
Создано системой
1.10.0