Pool
Class Pool
Table of Contents
Methods
- addItem() : bool
- Append item to pool.
- getEmails() : array<string|int, mixed>
- Get emails.
- getItems() : array<string|int, mixed>
- Get items.
- getPhones() : array<string|int, mixed>
- Get phones.
- getUsingByValue() : array<string|int, mixed>
- Get using by number.
- instance() : static
- Return instance.
- removeItem() : bool
- Remove item to pool.
Methods
addItem()
Append item to pool.
public
addItem(int $typeId, string $value) : bool
Parameters
- $typeId : int
-
Type ID.
- $value : string
-
Value.
Return values
boolgetEmails()
Get emails.
public
getEmails() : array<string|int, mixed>
Return values
array<string|int, mixed>getItems()
Get items.
public
getItems(int $typeId) : array<string|int, mixed>
Parameters
- $typeId : int
-
Type ID.
Return values
array<string|int, mixed>getPhones()
Get phones.
public
getPhones() : array<string|int, mixed>
Return values
array<string|int, mixed>getUsingByValue()
Get using by number.
public
getUsingByValue(int $typeId, string $value) : array<string|int, mixed>
Parameters
- $typeId : int
-
Type ID.
- $value : string
-
Value.
Return values
array<string|int, mixed>instance()
Return instance.
public
static instance() : static
Return values
staticremoveItem()
Remove item to pool.
public
removeItem(int $typeId, string $value) : bool
Parameters
- $typeId : int
-
Type ID.
- $value : string
-
Value.