blob: 882a21e60048e2cc23310e12d344f6317c515839 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<?php
interface Traversable {}
interface IteratorAggregate extends Traversable
{
/** @return Traversable */
function getIterator();
}
interface Iterator extends Traversable
{
function current();
/** @return void */
function next();
function key();
/** @return bool */
function valid();
/** @return void */
function rewind();
}
interface ArrayAccess
{
function offsetExists($offset);
/* actually this should be return by ref but atm cannot be */
function offsetGet($offset);
function offsetSet($offset, $value);
function offsetUnset($offset);
}
interface Serializable
{
/** @return string */
function serialize();
function unserialize(string $serialized);
}
interface Countable
{
/** @return int */
function count();
}
|