spl_dllist.stub.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. /** @generate-class-entries */
  3. class SplDoublyLinkedList implements Iterator, Countable, ArrayAccess, Serializable
  4. {
  5. /** @tentative-return-type */
  6. public function add(int $index, mixed $value): void {}
  7. /** @tentative-return-type */
  8. public function pop(): mixed {}
  9. /** @tentative-return-type */
  10. public function shift(): mixed {}
  11. /** @tentative-return-type */
  12. public function push(mixed $value): void {}
  13. /** @tentative-return-type */
  14. public function unshift(mixed $value): void {}
  15. /** @tentative-return-type */
  16. public function top(): mixed {}
  17. /** @tentative-return-type */
  18. public function bottom(): mixed {}
  19. /** @tentative-return-type */
  20. public function __debugInfo(): array {}
  21. /** @tentative-return-type */
  22. public function count(): int {}
  23. /** @tentative-return-type */
  24. public function isEmpty(): bool {}
  25. /** @tentative-return-type */
  26. public function setIteratorMode(int $mode): int {}
  27. /** @tentative-return-type */
  28. public function getIteratorMode(): int {}
  29. /**
  30. * @param int $index
  31. * @tentative-return-type
  32. */
  33. public function offsetExists($index): bool {}
  34. /**
  35. * @param int $index
  36. * @tentative-return-type
  37. */
  38. public function offsetGet($index): mixed {}
  39. /**
  40. * @param int|null $index
  41. * @tentative-return-type
  42. */
  43. public function offsetSet($index, mixed $value): void {}
  44. /**
  45. * @param int $index
  46. * @tentative-return-type
  47. */
  48. public function offsetUnset($index): void {}
  49. /** @tentative-return-type */
  50. public function rewind(): void {}
  51. /** @tentative-return-type */
  52. public function current(): mixed {}
  53. /** @tentative-return-type */
  54. public function key(): int {}
  55. /** @tentative-return-type */
  56. public function prev(): void {}
  57. /** @tentative-return-type */
  58. public function next(): void {}
  59. /** @tentative-return-type */
  60. public function valid(): bool {}
  61. /** @tentative-return-type */
  62. public function unserialize(string $data): void {}
  63. /** @tentative-return-type */
  64. public function serialize(): string {}
  65. /** @tentative-return-type */
  66. public function __serialize(): array {}
  67. /** @tentative-return-type */
  68. public function __unserialize(array $data): void {}
  69. }
  70. class SplQueue extends SplDoublyLinkedList
  71. {
  72. /**
  73. * @tentative-return-type
  74. * @implementation-alias SplDoublyLinkedList::push
  75. */
  76. public function enqueue(mixed $value): void {}
  77. /**
  78. * @tentative-return-type
  79. * @implementation-alias SplDoublyLinkedList::shift
  80. */
  81. public function dequeue(): mixed {}
  82. }
  83. class SplStack extends SplDoublyLinkedList
  84. {
  85. }