seriously simplify the buffer writer by not accepting a ref to a buffer
[awesomized/ext-ion] / ion.stub.php
index cc9f28892a8a9d40de6104a92099ef8e4c9f02b2..7818dde981e403198b45754e5e72935e38deb68b 100644 (file)
@@ -511,20 +511,17 @@ abstract class Writer implements \ion\Writer {
 namespace ion\Writer;
 interface Buffer extends \ion\Writer {
     public function getBuffer() : string;
+    public function resetBuffer() : void;
 }
 
 namespace ion\Writer\Buffer;
 class Writer extends \ion\Writer\Writer implements \ion\Writer\Buffer {
-    /** @param ref $buffer */
     public function __construct(
-        ?string &$buffer,
         ?\ion\Writer\Options $options = null,
     ) {}
 
-    /**
-     * @return string a _copy_ of $buffer passed to the constructor
-     */
     public function getBuffer() : string {}
+    public function resetBuffer() : void {}
 }
 
 namespace ion\Writer;