| 1 |
<?php |
| 2 |
|
| 3 |
namespace Psr\Http\Message; |
| 4 |
|
| 5 |
interface StreamInterface |
| 6 |
{ |
| 7 |
public function __toString(): string; |
| 8 |
|
| 9 |
public function close(): void; |
| 10 |
|
| 11 |
public function detach(); |
| 12 |
|
| 13 |
public function getSize(): ?int; |
| 14 |
|
| 15 |
public function tell(): int; |
| 16 |
|
| 17 |
public function eof(): bool; |
| 18 |
|
| 19 |
public function isSeekable(): bool; |
| 20 |
|
| 21 |
public function seek(int $offset, int $whence = SEEK_SET): void; |
| 22 |
|
| 23 |
public function rewind(): void; |
| 24 |
|
| 25 |
public function isWritable(): bool; |
| 26 |
|
| 27 |
public function write(string $string): int; |
| 28 |
|
| 29 |
public function isReadable(): bool; |
| 30 |
|
| 31 |
public function read(int $length): string; |
| 32 |
|
| 33 |
public function getContents(): string; |
| 34 |
|
| 35 |
public function getMetadata(?string $key = null); |
| 36 |
} |
| 37 |
|