mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
GH-9354 added the `__serialize` and `__unserialize` method, so unserialize() and other unserializers will call `__unserialize` instead of `__wakeup` for SplFixedArray and userland subclasses. RFC: https://wiki.php.net/rfc/deprecations_php_8_4#deprecate_splfixedarraywakeup
62 lines
1.4 KiB
PHP
62 lines
1.4 KiB
PHP
<?php
|
|
|
|
/** @generate-class-entries */
|
|
|
|
class SplFixedArray implements IteratorAggregate, ArrayAccess, Countable, JsonSerializable
|
|
{
|
|
public function __construct(int $size = 0) {}
|
|
|
|
/**
|
|
* @tentative-return-type
|
|
* @deprecated
|
|
*/
|
|
public function __wakeup(): void {}
|
|
|
|
public function __serialize(): array {}
|
|
|
|
public function __unserialize(array $data): void {}
|
|
|
|
/** @tentative-return-type */
|
|
public function count(): int {}
|
|
|
|
/** @tentative-return-type */
|
|
public function toArray(): array {}
|
|
|
|
/** @tentative-return-type */
|
|
public static function fromArray(array $array, bool $preserveKeys = true): SplFixedArray {}
|
|
|
|
/** @tentative-return-type */
|
|
public function getSize(): int {}
|
|
|
|
/** @tentative-return-type */
|
|
public function setSize(int $size): true {}
|
|
|
|
/**
|
|
* @param int $index
|
|
* @tentative-return-type
|
|
*/
|
|
public function offsetExists($index): bool {}
|
|
|
|
/**
|
|
* @param int $index
|
|
* @tentative-return-type
|
|
*/
|
|
public function offsetGet($index): mixed {}
|
|
|
|
/**
|
|
* @param int $index
|
|
* @tentative-return-type
|
|
*/
|
|
public function offsetSet($index, mixed $value): void {}
|
|
|
|
/**
|
|
* @param int $index
|
|
* @tentative-return-type
|
|
*/
|
|
public function offsetUnset($index): void {}
|
|
|
|
public function getIterator(): Iterator {}
|
|
|
|
public function jsonSerialize(): array {}
|
|
}
|