Menu

## Queue
in package

Queue.php : 5

### 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

Queue.php : 8
`protected array<string|int, mixed> $data`

### Methods

#### __construct()

Queue.php : 10
`public __construct() : mixed`

##### Return values

mixed —

#### clear()

Queue.php : 65

Removes all the items from the queue and rests it.

`public clear() : void`

##### Return values

void —

#### count()

Queue.php : 23
`public count() : int`

##### Return values

int —

#### dequeue()

Queue.php : 54

Retrieves the next item in the stack.

`public dequeue() : mixed|null`

##### Return values

mixed|null —

#### empty()

Queue.php : 73

Alias of clear method.

`public empty() : void`

##### Return values

void —

#### enqueue()

Queue.php : 33
`public enqueue(mixed $object) : void`

##### Parameters

$object : mixed

##### Return values

void —

#### isEmpty()

Queue.php : 15
`public isEmpty() : bool`

##### Return values

bool —

#### peek()

Queue.php : 42

Retrieves the next item in the stack without removing it.

`public peek() : mixed|null`

##### Return values

mixed|null —

#### toArray()

Queue.php : 28
`public toArray() : array<string|int, mixed>`

##### Return values

array<string|int, mixed> —

## Search results