php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
spl_heap.stub.php
Go to the documentation of this file.
1<?php
2
4
6{
8 public const int EXTR_BOTH = UNKNOWN;
10 public const int EXTR_PRIORITY = UNKNOWN;
12 public const int EXTR_DATA = UNKNOWN;
13
15 public function compare(mixed $priority1, mixed $priority2): int {}
16
18 public function insert(mixed $value, mixed $priority): true {}
19
21 public function setExtractFlags(int $flags): int {}
22
24 public function top(): mixed {}
25
27 public function extract(): mixed {}
28
33 public function count(): int {}
34
39 public function isEmpty(): bool {}
40
45 public function rewind(): void {}
46
48 public function current(): mixed {}
49
54 public function key(): int {}
55
60 public function next(): void {}
61
66 public function valid(): bool {}
67
73
78 public function isCorrupted(): bool {}
79
81 public function getExtractFlags(): int {}
82
84 public function __debugInfo(): array {}
85}
86
87abstract class SplHeap implements Iterator, Countable
88{
90 public function extract(): mixed {}
91
93 public function insert(mixed $value): true {}
94
96 public function top(): mixed {}
97
99 public function count(): int {}
100
102 public function isEmpty(): bool {}
103
105 public function rewind(): void {}
106
108 public function current(): mixed {}
109
111 public function key(): int {}
112
114 public function next(): void {}
115
117 public function valid(): bool {}
118
121
123 abstract protected function compare(mixed $value1, mixed $value2): int;
124
126 public function isCorrupted(): bool {}
127
129 public function __debugInfo(): array {}
130}
131
132class SplMinHeap extends SplHeap
133{
135 protected function compare(mixed $value1, mixed $value2): int {}
136}
137
138class SplMaxHeap extends SplHeap
139{
141 protected function compare(mixed $value1, mixed $value2): int {}
142}
insert(mixed $value)
recoverFromCorruption()
compare(mixed $value1, mixed $value2)
compare(mixed $value1, mixed $value2)
compare(mixed $value1, mixed $value2)
insert(mixed $value, mixed $priority)
compare(mixed $priority1, mixed $priority2)
const int EXTR_BOTH
const int EXTR_PRIORITY
setExtractFlags(int $flags)
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)
function(EX_VAR(opline->result.var))