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
|
|
|
|
{
|
2020-08-14 23:36:20 +08:00
|
|
|
/** @return void */
|
|
|
|
public function attach(object $object, mixed $info = null) {}
|
2020-03-15 03:16:19 +08:00
|
|
|
|
|
|
|
/** @return void */
|
|
|
|
public function detach(object $object) {}
|
|
|
|
|
|
|
|
/** @return bool */
|
|
|
|
public function contains(object $object) {}
|
|
|
|
|
|
|
|
/** @return int */
|
|
|
|
public function addAll(SplObjectStorage $storage) {}
|
|
|
|
|
2021-07-14 17:01:57 +08:00
|
|
|
/** @return int */
|
2020-03-15 03:16:19 +08:00
|
|
|
public function removeAll(SplObjectStorage $storage) {}
|
|
|
|
|
2021-07-14 17:01:57 +08:00
|
|
|
/** @return int */
|
2020-03-15 03:16:19 +08:00
|
|
|
public function removeAllExcept(SplObjectStorage $storage) {}
|
|
|
|
|
|
|
|
/** @return mixed */
|
|
|
|
public function getInfo() {}
|
|
|
|
|
2020-08-14 23:36:20 +08:00
|
|
|
/** @return void */
|
|
|
|
public function setInfo(mixed $info) {}
|
2020-03-15 03:16:19 +08:00
|
|
|
|
|
|
|
/** @return int */
|
|
|
|
public function count(int $mode = COUNT_NORMAL) {}
|
|
|
|
|
|
|
|
/** @return void */
|
|
|
|
public function rewind() {}
|
|
|
|
|
|
|
|
/** @return bool */
|
|
|
|
public function valid() {}
|
|
|
|
|
|
|
|
/** @return int */
|
|
|
|
public function key() {}
|
|
|
|
|
2021-07-14 17:01:57 +08:00
|
|
|
/** @return object|null */
|
2020-03-15 03:16:19 +08:00
|
|
|
public function current() {}
|
|
|
|
|
|
|
|
/** @return void */
|
|
|
|
public function next() {}
|
|
|
|
|
|
|
|
/** @return void */
|
2020-10-06 20:58:45 +08:00
|
|
|
public function unserialize(string $data) {}
|
2020-03-15 03:16:19 +08:00
|
|
|
|
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-09-20 02:13:08 +08:00
|
|
|
* @implementation-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
|
|
|
|
* @return void
|
2020-09-20 02:13:08 +08:00
|
|
|
* @implementation-alias SplObjectStorage::attach
|
2020-03-15 03:16:19 +08:00
|
|
|
*/
|
2020-08-14 23:36:20 +08:00
|
|
|
public function offsetSet($object, mixed $info = null) {}
|
2020-03-15 03:16:19 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param object $object
|
|
|
|
* @return void
|
2020-09-20 02:13:08 +08:00
|
|
|
* @implementation-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) {}
|
|
|
|
|
2020-09-04 20:23:43 +08:00
|
|
|
/** @return void */
|
|
|
|
public function attachIterator(Iterator $iterator, string|int|null $info = null) {}
|
2020-03-15 03:16:19 +08:00
|
|
|
|
|
|
|
/** @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() {}
|
|
|
|
|
2021-07-14 17:01:57 +08:00
|
|
|
/** @return array|false */
|
2020-03-15 03:16:19 +08:00
|
|
|
public function key() {}
|
|
|
|
|
2021-07-14 17:01:57 +08:00
|
|
|
/** @return array|false */
|
2020-03-15 03:16:19 +08:00
|
|
|
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
|
2020-09-20 02:13:08 +08:00
|
|
|
* @implementation-alias SplObjectStorage::__debugInfo
|
2020-04-26 01:08:53 +08:00
|
|
|
*/
|
2020-04-06 18:03:01 +08:00
|
|
|
public function __debugInfo() {}
|
2020-03-15 03:16:19 +08:00
|
|
|
}
|