CounterQueue
Table of Contents
Properties
-
$instance
: mixed
Methods
-
add()
: void
-
done()
: void
-
get()
: array<string|int, mixed>
-
getInstance()
: mixed
-
isInQueue()
: bool
$instance
public
static mixed
$instance
add()
public
add(int $userId, string $type, array<string|int, mixed> $tasks) : void
Parameters
-
$userId
: int
-
-
$type
: string
-
-
$tasks
: array<string|int, mixed>
-
-
throws
-
SqlQueryException
done()
public
done() : void
-
throws
-
SqlQueryException
get()
public
get(int $limit) : array<string|int, mixed>
Parameters
-
$limit
: int
-
-
throws
-
SqlQueryException
Return values
array<string|int, mixed>
getInstance()
public
static getInstance() : mixed
isInQueue()
public
isInQueue(int $userId) : bool
Parameters
-
$userId
: int
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException