Counter
Table of Contents
Methods
-
__construct()
: mixed
-
getCounterId()
: string
-
getValue()
: int
-
setValue()
: bool
-
sync()
: void
__construct()
public
__construct(string $counterId[, SyncInterface|null $syncStrategy = null ]) : mixed
Parameters
-
$counterId
: string
-
-
$syncStrategy
: SyncInterface|null
= null
-
getCounterId()
public
getCounterId() : string
getValue()
public
getValue(User $user) : int
Parameters
-
$user
: User
-
setValue()
public
setValue(User $user, int $value) : bool
Parameters
-
$user
: User
-
-
$value
: int
-
sync()
public
sync() : void