diff --git a/CHANGELOG.md b/CHANGELOG.md index e013489..8684758 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ Common and useful classes, methods, exceptions etc. character class at offset 4" bug 2. Collection/storage of templates 3. Template with placeholders that may be filled by real data +4. RenderableInterface > something that may be rendered # 1.0.0 diff --git a/src/Renderable/RenderableInterface.php b/src/Renderable/RenderableInterface.php new file mode 100644 index 0000000..de10afa --- /dev/null +++ b/src/Renderable/RenderableInterface.php @@ -0,0 +1,31 @@ + + * @copyright Meritoo + */ +interface RenderableInterface +{ + /** + * Renders this object using given templates + * + * @param Templates $templates Collection/storage of templates that will be required while rendering this and + * related objects, e.g. children of this object + * @return string + */ + public function render(Templates $templates): string; +}