php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
zend_interfaces.stub.php
Go to the documentation of this file.
1<?php
2
4
5interface Traversable {}
6
8{
10 public function getIterator(): Traversable;
11}
12
13interface Iterator extends Traversable
14{
16 public function current(): mixed;
17
19 public function next(): void;
20
22 public function key(): mixed;
23
25 public function valid(): bool;
26
28 public function rewind(): void;
29}
30
31interface ArrayAccess
32{
34 public function offsetExists(mixed $offset): bool;
35
40 public function offsetGet(mixed $offset): mixed;
41
43 public function offsetSet(mixed $offset, mixed $value): void;
44
46 public function offsetUnset(mixed $offset): void;
47}
48
49interface Serializable
50{
52 public function serialize();
53
55 public function unserialize(string $data);
56}
57
58interface Countable
59{
61 public function count(): int;
62}
63
64interface Stringable
65{
66 public function __toString(): string;
67}
68
72final class InternalIterator implements Iterator
73{
74 private function __construct() {}
75
76 public function current(): mixed {}
77
78 public function key(): mixed {}
79
80 public function next(): void {}
81
82 public function valid(): bool {}
83
84 public function rewind(): void {}
85}
$data
Definition bench.php:6
offsetExists(mixed $offset)
offsetGet(mixed $offset)
offsetUnset(mixed $offset)
offsetSet(mixed $offset, mixed $value)
unserialize(string $data)
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)
function(EX_VAR(opline->result.var))