aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2014-06-16 21:05:47 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2014-06-16 21:05:47 +0100
commitc10f23555a51081e9d7e3c09d25c690dd75a7f41 (patch)
treefd6b926bd88fa204b48f9fef2473a0dc092e5f1b
parentc294523d5325d37fc240a184a1365b1c82275361 (diff)
downloadView-c10f23555a51081e9d7e3c09d25c690dd75a7f41.zip
View-c10f23555a51081e9d7e3c09d25c690dd75a7f41.tar.gz
View-c10f23555a51081e9d7e3c09d25c690dd75a7f41.tar.bz2
Write contracts.
-rw-r--r--Viewable.php24
1 files changed, 8 insertions, 16 deletions
diff --git a/Viewable.php b/Viewable.php
index cecf600..dc5fc0b 100644
--- a/Viewable.php
+++ b/Viewable.php
@@ -49,34 +49,26 @@ namespace Hoa\View {
interface Viewable {
/**
- * Get the output stream.
- *
- * @access public
- * @return \Hoa\Stream\IStream\Out
+ * @description 'Get the output stream.';
+ * @ensures \result: \Hoa\Stream\IStream\Out;
*/
public function getOutputStream ( );
/**
- * Get the data holded by the view.
- *
- * @access public
- * @return \Hoa\Core\Data
+ * @description 'Get the data holded by the view.';
+ * @ensures \result: \Hoa\Core\Data;
*/
public function getData ( );
/**
- * Make a render of the view.
- *
- * @access public
- * @return void
+ * @description 'Make a render of the view.';
+ * @ensures \result: void;
*/
public function render ( );
/**
- * Get router.
- *
- * @access public
- * @return \Hoa\Router
+ * @description 'Get router.';
+ * @ensures \result: \Hoa\Router;
*/
public function getRouter ( );
}