1<?php 2 3/** @generate-class-entries */ 4 5class Directory 6{ 7 public readonly string $path; 8 9 /** @var resource */ 10 public readonly mixed $handle; 11 12 /** 13 * @tentative-return-type 14 * @implementation-alias closedir 15 */ 16 public function close(): void {} 17 18 /** 19 * @tentative-return-type 20 * @implementation-alias rewinddir 21 */ 22 public function rewind(): void {} 23 24 /** 25 * @tentative-return-type 26 * @implementation-alias readdir 27 */ 28 public function read(): string|false {} 29} 30