1<?php 2 3/** @generate-class-entries */ 4 5class SplFixedArray implements IteratorAggregate, ArrayAccess, Countable, JsonSerializable 6{ 7 public function __construct(int $size = 0) {} 8 9 /** @tentative-return-type */ 10 public function __wakeup(): void {} 11 12 public function __serialize(): array {} 13 14 public function __unserialize(array $data): void {} 15 16 /** @tentative-return-type */ 17 public function count(): int {} 18 19 /** @tentative-return-type */ 20 public function toArray(): array {} 21 22 /** @tentative-return-type */ 23 public static function fromArray(array $array, bool $preserveKeys = true): SplFixedArray {} 24 25 /** @tentative-return-type */ 26 public function getSize(): int {} 27 28 /** @return bool */ 29 public function setSize(int $size) {} // TODO make return type void 30 31 /** 32 * @param int $index 33 * @tentative-return-type 34 */ 35 public function offsetExists($index): bool {} 36 37 /** 38 * @param int $index 39 * @tentative-return-type 40 */ 41 public function offsetGet($index): mixed {} 42 43 /** 44 * @param int $index 45 * @tentative-return-type 46 */ 47 public function offsetSet($index, mixed $value): void {} 48 49 /** 50 * @param int $index 51 * @tentative-return-type 52 */ 53 public function offsetUnset($index): void {} 54 55 public function getIterator(): Iterator {} 56 57 public function jsonSerialize(): array {} 58} 59