php-src/Zend/zend_interfaces.stub.php
Christoph M. Becker 273731fb76 Add Zend class/interface arginfo stubs
We also change `Generator::throw()` to expect a `Throwable` in the
first place, and we now throw a TypeError instead of returning `false`
from `Exception::getTraceAsString()`.
2019-10-15 16:21:00 +02:00

52 lines
812 B
PHP

<?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();
}