mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
6d805ed275
Closes GH-7235
55 lines
1.3 KiB
PHP
55 lines
1.3 KiB
PHP
<?php
|
|
|
|
/** @generate-class-entries */
|
|
|
|
class SplFixedArray implements IteratorAggregate, ArrayAccess, Countable, JsonSerializable
|
|
{
|
|
public function __construct(int $size = 0) {}
|
|
|
|
/** @tentative-return-type */
|
|
public function __wakeup(): 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 {}
|
|
|
|
/** @return bool */
|
|
public function setSize(int $size) {} // TODO make return type void
|
|
|
|
/**
|
|
* @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 {}
|
|
}
|