Snaju Inception Docs

Queue
in package

Table of Contents

$data  : array<string|int, mixed>
__construct()  : mixed
clear()  : void
Removes all the items from the queue and rests it.
count()  : int
dequeue()  : mixed|null
Retrieves the next item in the stack.
empty()  : void
Alias of clear method.
enqueue()  : void
isEmpty()  : bool
peek()  : mixed|null
Retrieves the next item in the stack without removing it.
toArray()  : array<string|int, mixed>

Properties

$data

protected array<string|int, mixed> $data

Methods

__construct()

public __construct() : mixed
Return values
mixed

clear()

Removes all the items from the queue and rests it.

public clear() : void
Return values
void

count()

public count() : int
Return values
int

dequeue()

Retrieves the next item in the stack.

public dequeue() : mixed|null
Return values
mixed|null

empty()

Alias of clear method.

public empty() : void
Return values
void

enqueue()

public enqueue(mixed $object) : void
Parameters
$object : mixed
Return values
void

isEmpty()

public isEmpty() : bool
Return values
bool

peek()

Retrieves the next item in the stack without removing it.

public peek() : mixed|null
Return values
mixed|null

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results