You are here

public function PriorityQueue::__clone in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/src/PriorityQueue.php \Zend\Stdlib\PriorityQueue::__clone()

Add support for deep cloning

Return value

void

File

vendor/zendframework/zend-stdlib/src/PriorityQueue.php, line 295

Class

PriorityQueue
Re-usable, serializable priority queue implementation

Namespace

Zend\Stdlib

Code

public function __clone() {
  if (null !== $this->queue) {
    $this->queue = clone $this->queue;
  }
}