diff --git a/src/IViewSettable.php b/src/IViewSettable.php new file mode 100644 index 0000000..d81454d --- /dev/null +++ b/src/IViewSettable.php @@ -0,0 +1,27 @@ + + */ +interface IViewSettable +{ + /** + * Generate collection of view variables, prefixed if needed, that should be passed to + * view context. + * + * @param string $prefix Prefix to be added to all keys in returned data collection + * @return array Collection(key => value) of data for view context + */ + public function toView($prefix = ''); +} diff --git a/src/IViewable.php b/src/IViewable.php index a3f831e..81842a6 100644 --- a/src/IViewable.php +++ b/src/IViewable.php @@ -12,6 +12,7 @@ * Generic view rendering interface defining * all main view context operations. * @package samson\core + * @author Vitaly Iegorov */ interface IViewable {