summaryrefslogtreecommitdiff
path: root/framework/IO/ITextWriter.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/IO/ITextWriter.php')
-rw-r--r--framework/IO/ITextWriter.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/framework/IO/ITextWriter.php b/framework/IO/ITextWriter.php
new file mode 100644
index 00000000..d22e5cfe
--- /dev/null
+++ b/framework/IO/ITextWriter.php
@@ -0,0 +1,34 @@
+<?php
+/**
+ * Core interfaces essential for TApplication class.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005-2014 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @package Prado\IO
+ */
+
+namespace Prado\IO;
+
+/**
+ * ITextWriter interface.
+ *
+ * This interface must be implemented by writers.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @package Prado\IO
+ * @since 3.0
+ */
+interface ITextWriter
+{
+ /**
+ * Writes a string.
+ * @param string string to be written
+ */
+ public function write($str);
+ /**
+ * Flushes the content that has been written.
+ */
+ public function flush();
+} \ No newline at end of file