function Queue::__construct
Constructs a queue object of the specified type, optionally with the specified data.
Parameters
string $queueType The type or class name associated with this queue.:
array<array-key, T> $data The initial items to store in the queue.:
Overrides AbstractArray::__construct
2 calls to Queue::__construct()
- DoubleEndedQueue::__construct in vendor/
ramsey/ collection/ src/ DoubleEndedQueue.php - Constructs a double-ended queue (dequeue) object of the specified type, optionally with the specified data.
- DoubleEndedQueue::__construct in vendor/
ramsey/ collection/ src/ DoubleEndedQueue.php - Constructs a double-ended queue (dequeue) object of the specified type, optionally with the specified data.
1 method overrides Queue::__construct()
- DoubleEndedQueue::__construct in vendor/
ramsey/ collection/ src/ DoubleEndedQueue.php - Constructs a double-ended queue (dequeue) object of the specified type, optionally with the specified data.
File
-
vendor/
ramsey/ collection/ src/ Queue.php, line 44
Class
- Queue
- This class provides a basic implementation of `QueueInterface`, to minimize the effort required to implement this interface.
Namespace
Ramsey\CollectionCode
public function __construct(string $queueType, array $data = []) {
parent::__construct($data);
}