1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 10:03:18 +02:00
Files
archived-php-src/Zend/zend_interfaces.stub.php
2020-04-03 17:59:30 +02:00

64 lines
1.0 KiB
PHP

<?php
interface Traversable {}
interface IteratorAggregate extends Traversable
{
/** @return Traversable */
function getIterator();
}
interface Iterator extends Traversable
{
/** @return mixed */
function current();
/** @return void */
function next();
/** @return mixed */
function key();
/** @return bool */
function valid();
/** @return void */
function rewind();
}
interface ArrayAccess
{
/** @return bool */
function offsetExists($offset);
/* actually this should be return by ref but atm cannot be */
/** @return mixed */
function offsetGet($offset);
/** @return void */
function offsetSet($offset, $value);
/** @return void */
function offsetUnset($offset);
}
interface Serializable
{
/** @return string */
function serialize();
/** @return void */
function unserialize(string $serialized);
}
interface Countable
{
/** @return int */
function count();
}
interface Stringable
{
function __toString(): string;
}