You are here

public function FastPriorityQueue::serialize in Zircon Profile 8

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

Serialize

Return value

string

File

vendor/zendframework/zend-stdlib/src/FastPriorityQueue.php, line 263

Class

FastPriorityQueue
This is an efficient implementation of an integer priority queue in PHP

Namespace

Zend\Stdlib

Code

public function serialize() {
  $clone = clone $this;
  $clone
    ->setExtractFlags(self::EXTR_BOTH);
  $data = [];
  foreach ($clone as $item) {
    $data[] = $item;
  }
  return serialize($data);
}