Table of Contents
Interfaces
- CounterRepositoryInterface
Methods
-
__construct()
: mixed
-
down()
: void
-
get()
: int
-
getByUser()
: array<string|int, mixed>
-
getList()
: array<string|int, mixed>
-
getUsersByCounterType()
: array<string|int, mixed>
-
up()
: void
__construct()
public
__construct() : mixed
down()
public
down(int $entityId, CounterDictionary $type[, int|null $userId = null ]) : void
Parameters
-
$entityId
: int
-
-
$type
: CounterDictionary
-
-
$userId
: int|null
= null
-
get()
public
get(int $userId[, CounterDictionary $type = CounterDictionary::Total ][, int $entityId = 0 ]) : int
Parameters
-
$userId
: int
-
-
$type
: CounterDictionary
= CounterDictionary::Total
-
-
$entityId
: int
= 0
-
getByUser()
public
getByUser(int $userId) : array<string|int, mixed>
Parameters
-
$userId
: int
-
Return values
array<string|int, mixed>
getList()
public
getList(int $userId) : array<string|int, mixed>
Parameters
-
$userId
: int
-
Return values
array<string|int, mixed>
getUsersByCounterType()
public
getUsersByCounterType(int $entityId, CounterDictionary $type) : array<string|int, mixed>
Parameters
-
$entityId
: int
-
-
$type
: CounterDictionary
-
Return values
array<string|int, mixed>
up()
public
up(int $entityId, CounterDictionary $type, int $userId) : void
Parameters
-
$entityId
: int
-
-
$type
: CounterDictionary
-
-
$userId
: int
-