We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fcf948 commit 77ba53dCopy full SHA for 77ba53d
src/StreamableInterface.php
@@ -83,6 +83,17 @@ public function isSeekable();
83
*/
84
public function seek($offset, $whence = SEEK_SET);
85
86
+ /**
87
+ * Seek to the beginning of the stream.
88
+ *
89
+ * If the stream is not seekable, this method will return FALSE, indicating
90
+ * failure; otherwise, it will perform a seek(0), and return the status of
91
+ * that operation.
92
93
+ * @return bool Returns TRUE on success or FALSE on failure.
94
+ */
95
+ public function rewind();
96
+
97
/**
98
* Returns whether or not the stream is writable.
99
*
0 commit comments