yiisoft /
yii-debug
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace Yiisoft\Yii\Debug\Helper\StreamWrapper; |
||
| 6 | |||
| 7 | use const SEEK_SET; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @link https://www.php.net/manual/en/class.streamwrapper.php |
||
| 11 | */ |
||
| 12 | interface StreamWrapperInterface |
||
| 13 | { |
||
| 14 | public function stream_open(string $path, string $mode, int $options, ?string &$opened_path): bool; |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 15 | |||
| 16 | public function stream_read(int $count): string|false; |
||
|
0 ignored issues
–
show
|
|||
| 17 | |||
| 18 | public function stream_set_option(int $option, int $arg1, int $arg2): bool; |
||
|
0 ignored issues
–
show
|
|||
| 19 | |||
| 20 | public function stream_tell(): int; |
||
|
0 ignored issues
–
show
|
|||
| 21 | |||
| 22 | public function stream_eof(): bool; |
||
|
0 ignored issues
–
show
|
|||
| 23 | |||
| 24 | public function stream_seek(int $offset, int $whence = SEEK_SET): bool; |
||
|
0 ignored issues
–
show
|
|||
| 25 | |||
| 26 | /** |
||
| 27 | * @return resource |
||
| 28 | */ |
||
| 29 | public function stream_cast(int $castAs); |
||
|
0 ignored issues
–
show
|
|||
| 30 | |||
| 31 | public function stream_stat(): array|false; |
||
|
0 ignored issues
–
show
|
|||
| 32 | |||
| 33 | public function dir_closedir(): bool; |
||
|
0 ignored issues
–
show
|
|||
| 34 | |||
| 35 | public function dir_opendir(string $path, int $options): bool; |
||
|
0 ignored issues
–
show
|
|||
| 36 | |||
| 37 | public function dir_readdir(): false|string; |
||
|
0 ignored issues
–
show
|
|||
| 38 | |||
| 39 | public function dir_rewinddir(): bool; |
||
|
0 ignored issues
–
show
|
|||
| 40 | |||
| 41 | public function mkdir(string $path, int $mode, int $options): bool; |
||
| 42 | |||
| 43 | public function rename(string $path_from, string $path_to): bool; |
||
| 44 | |||
| 45 | public function rmdir(string $path, int $options): bool; |
||
| 46 | |||
| 47 | public function stream_close(): void; |
||
|
0 ignored issues
–
show
|
|||
| 48 | |||
| 49 | public function stream_flush(): bool; |
||
|
0 ignored issues
–
show
|
|||
| 50 | |||
| 51 | public function stream_lock(int $operation): bool; |
||
|
0 ignored issues
–
show
|
|||
| 52 | |||
| 53 | public function stream_metadata(string $path, int $option, mixed $value): bool; |
||
|
0 ignored issues
–
show
|
|||
| 54 | |||
| 55 | public function stream_truncate(int $new_size): bool; |
||
|
0 ignored issues
–
show
|
|||
| 56 | |||
| 57 | public function stream_write(string $data): int; |
||
|
0 ignored issues
–
show
|
|||
| 58 | |||
| 59 | public function unlink(string $path): bool; |
||
| 60 | |||
| 61 | public function url_stat(string $path, int $flags): array|false; |
||
|
0 ignored issues
–
show
|
|||
| 62 | } |
||
| 63 |