2020-03-15 03:16:19 +08:00
|
|
|
<?php
|
|
|
|
|
2020-04-26 01:08:53 +08:00
|
|
|
/** @generate-function-entries */
|
|
|
|
|
2020-03-15 03:16:19 +08:00
|
|
|
interface SplObserver
|
|
|
|
{
|
|
|
|
/** @return void */
|
|
|
|
public function update(SplSubject $subject);
|
|
|
|
}
|
|
|
|
|
|
|
|
interface SplSubject
|
|
|
|
{
|
|
|
|
/** @return void */
|
|
|
|
public function attach(SplObserver $observer);
|
|
|
|
|
|
|
|
/** @return void */
|
|
|
|
public function detach(SplObserver $observer);
|
|
|
|
|
|
|
|
/** @return void */
|
|
|
|
public function notify();
|
|
|
|
}
|
|
|
|
|
|
|
|
class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param mixed $info
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function attach(object $object, $info = null) {}
|
|
|
|
|
|
|
|
/** @return void */
|
|
|
|
public function detach(object $object) {}
|
|
|
|
|
|
|
|
/** @return bool */
|
|
|
|
public function contains(object $object) {}
|
|
|
|
|
|
|
|
/** @return int */
|
|
|
|
public function addAll(SplObjectStorage $storage) {}
|
|
|
|
|
|
|
|
/** @return void */
|
|
|
|
public function removeAll(SplObjectStorage $storage) {}
|
|
|
|
|
|
|
|
/** @return void */
|
|
|
|
public function removeAllExcept(SplObjectStorage $storage) {}
|
|
|
|
|
|
|
|
/** @return mixed */
|
|
|
|
public function getInfo() {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param mixed $info
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function setInfo($info) {}
|
|
|
|
|
|
|
|
/** @return int */
|
|
|
|
public function count(int $mode = COUNT_NORMAL) {}
|
|
|
|
|
|
|
|
/** @return void */
|
|
|
|
public function rewind() {}
|
|
|
|
|
|
|
|
/** @return bool */
|
|
|
|
public function valid() {}
|
|
|
|
|
|
|
|
/** @return int */
|
|
|
|
public function key() {}
|
|
|
|
|
|
|
|
/** @return object */
|
|
|
|
public function current() {}
|
|
|
|
|
|
|
|
/** @return void */
|
|
|
|
public function next() {}
|
|
|
|
|
|
|
|
/** @return void */
|
|
|
|
public function unserialize(string $serialized) {}
|
|
|
|
|
2020-03-16 17:27:48 +08:00
|
|
|
/** @return string */
|
2020-03-15 03:16:19 +08:00
|
|
|
public function serialize() {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param object $object
|
|
|
|
* @return bool
|
2020-04-26 01:08:53 +08:00
|
|
|
* @alias SplObjectStorage::contains
|
2020-03-15 03:16:19 +08:00
|
|
|
*/
|
|
|
|
public function offsetExists($object) {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param object $object
|
2020-03-16 17:27:48 +08:00
|
|
|
* @return mixed
|
2020-03-15 03:16:19 +08:00
|
|
|
*/
|
|
|
|
public function offsetGet($object) {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param object $object
|
|
|
|
* @param mixed $info
|
|
|
|
* @return void
|
2020-04-26 01:08:53 +08:00
|
|
|
* @alias SplObjectStorage::attach
|
2020-03-15 03:16:19 +08:00
|
|
|
*/
|
|
|
|
public function offsetSet($object, $info = null) {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param object $object
|
|
|
|
* @return void
|
2020-04-26 01:08:53 +08:00
|
|
|
* @alias SplObjectStorage::detach
|
2020-03-15 03:16:19 +08:00
|
|
|
*/
|
|
|
|
public function offsetUnset($object) {}
|
|
|
|
|
|
|
|
/** @return string */
|
|
|
|
public function getHash(object $object) {}
|
|
|
|
|
|
|
|
/** @return array */
|
|
|
|
public function __serialize() {}
|
|
|
|
|
|
|
|
/** @return void */
|
|
|
|
public function __unserialize(array $data) {}
|
2020-04-06 18:03:01 +08:00
|
|
|
|
|
|
|
/** @return array */
|
|
|
|
public function __debugInfo() {}
|
2020-03-15 03:16:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
class MultipleIterator implements Iterator
|
|
|
|
{
|
|
|
|
public function __construct(int $flags = MultipleIterator::MIT_NEED_ALL|MultipleIterator::MIT_KEYS_NUMERIC) {}
|
|
|
|
|
|
|
|
/** @return int */
|
|
|
|
public function getFlags() {}
|
|
|
|
|
|
|
|
/** @return void */
|
|
|
|
public function setFlags(int $flags) {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Iterator $iterator
|
|
|
|
* @param int|string|null $info
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function attachIterator(Iterator $iterator, $info = null) {}
|
|
|
|
|
|
|
|
/** @return void */
|
2020-03-16 17:27:48 +08:00
|
|
|
public function detachIterator(Iterator $iterator) {}
|
2020-03-15 03:16:19 +08:00
|
|
|
|
|
|
|
/** @return bool */
|
2020-03-16 17:27:48 +08:00
|
|
|
public function containsIterator(Iterator $iterator) {}
|
2020-03-15 03:16:19 +08:00
|
|
|
|
2020-08-13 20:39:38 +08:00
|
|
|
/** @return int */
|
2020-03-15 03:16:19 +08:00
|
|
|
public function countIterators() {}
|
|
|
|
|
|
|
|
/** @return void */
|
|
|
|
public function rewind() {}
|
|
|
|
|
|
|
|
/** @return bool */
|
|
|
|
public function valid() {}
|
|
|
|
|
|
|
|
/** @return array */
|
|
|
|
public function key() {}
|
|
|
|
|
|
|
|
/** @return array */
|
|
|
|
public function current() {}
|
|
|
|
|
|
|
|
/** @return void */
|
|
|
|
public function next() {}
|
2020-04-06 18:03:01 +08:00
|
|
|
|
2020-04-26 01:08:53 +08:00
|
|
|
/**
|
|
|
|
* @return array
|
|
|
|
* @alias SplObjectStorage::__debugInfo
|
|
|
|
*/
|
2020-04-06 18:03:01 +08:00
|
|
|
public function __debugInfo() {}
|
2020-03-15 03:16:19 +08:00
|
|
|
}
|