1
0
mirror of https://github.com/php/php-src.git synced 2026-04-01 13:12:16 +02:00
Files
archived-php-src/ext/spl/spl_heap.stub.php
Máté Kocsis 4f4c031f62 Generate ext/spl class entries from stubs
Closes GH-6709
2021-02-18 13:01:51 +01:00

136 lines
2.7 KiB
PHP

<?php
/** @generate-class-entries */
class SplPriorityQueue implements Iterator, Countable
{
/** @return int */
public function compare(mixed $priority1, mixed $priority2) {}
/** @return bool */
public function insert(mixed $value, mixed $priority) {}
/** @return int */
public function setExtractFlags(int $flags) {}
/** @return mixed */
public function top() {}
/** @return mixed */
public function extract() {}
/**
* @return int
* @implementation-alias SplHeap::count
*/
public function count() {}
/**
* @return bool
* @implementation-alias SplHeap::isEmpty
*/
public function isEmpty() {}
/**
* @return void
* @implementation-alias SplHeap::rewind
*/
public function rewind() {}
/** @return mixed */
public function current() {}
/**
* @return int
* @implementation-alias SplHeap::key
*/
public function key() {}
/**
* @return void
* @implementation-alias SplHeap::next
*/
public function next() {}
/**
* @return bool
* @implementation-alias SplHeap::valid
*/
public function valid() {}
/**
* @return bool
* @implementation-alias SplHeap::recoverFromCorruption
*/
public function recoverFromCorruption() {}
/**
* @return bool
* @implementation-alias SplHeap::isCorrupted
*/
public function isCorrupted() {}
/** @return int */
public function getExtractFlags() {}
/** @return array */
public function __debugInfo() {}
}
abstract class SplHeap implements Iterator, Countable
{
/** @return mixed */
public function extract() {}
/** @return bool */
public function insert(mixed $value) {}
/** @return mixed */
public function top() {}
/** @return int */
public function count() {}
/** @return bool */
public function isEmpty() {}
/** @return void */
public function rewind() {}
/** @return mixed */
public function current() {}
/** @return int */
public function key() {}
/** @return void */
public function next() {}
/** @return bool */
public function valid() {}
/** @return bool */
public function recoverFromCorruption() {}
/** @return int */
abstract protected function compare(mixed $value1, mixed $value2);
/** @return bool */
public function isCorrupted() {}
/** @return array */
public function __debugInfo() {}
}
class SplMinHeap extends SplHeap
{
/** @return int */
protected function compare(mixed $value1, mixed $value2) {}
}
class SplMaxHeap extends SplHeap
{
/** @return int */
protected function compare(mixed $value1, mixed $value2) {}
}