1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Add state renderable -- all renderables are state renderables

This commit is contained in:
Aidan Woods 2019-01-20 02:11:09 +00:00
parent dcc5ea0c9b
commit 7746c9df06
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,15 @@
<?php
namespace Erusev\Parsedown\AST;
use Erusev\Parsedown\Html\Renderable;
use Erusev\Parsedown\State;
interface StateRenderable
{
/**
* @param State $State
* @return Renderable
*/
public function renderable(State $State);
}

View File

@ -2,7 +2,9 @@
namespace Erusev\Parsedown\Html;
interface Renderable
use Erusev\Parsedown\AST\StateRenderable;
interface Renderable extends StateRenderable
{
/** @return string */
public function getHtml();