jetpack
/
vendor
/
wp-php-toolkit
/
filesystem
/
Mixin
/
Interfaces
/
interface-internalizedwritestream.php
interface-internalizedwritestream.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WordPress\Filesystem\Mixin\Interfaces; |
| 4 | |
| 5 | use WordPress\Filesystem\FilesystemException; |
| 6 | |
| 7 | interface InternalizedWriteStream { |
| 8 | |
| 9 | /** |
| 10 | * Get the next chunk of a file. |
| 11 | * |
| 12 | * @param int $stream_id The stream identifier. |
| 13 | * |
| 14 | * @throws FilesystemException If the next chunk cannot be retrieved. |
| 15 | */ |
| 16 | public function write_stream_append_bytes( int $stream_id, $data ); |
| 17 | |
| 18 | /** |
| 19 | * Close the file writer. |
| 20 | * |
| 21 | * @throws FilesystemException If the stream cannot be closed. |
| 22 | */ |
| 23 | public function write_stream_close( int $stream_id ): void; |
| 24 | } |
| 25 |