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:
parent
dcc5ea0c9b
commit
7746c9df06
15
src/AST/StateRenderable.php
Normal file
15
src/AST/StateRenderable.php
Normal 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);
|
||||
}
|
@ -2,7 +2,9 @@
|
||||
|
||||
namespace Erusev\Parsedown\Html;
|
||||
|
||||
interface Renderable
|
||||
use Erusev\Parsedown\AST\StateRenderable;
|
||||
|
||||
interface Renderable extends StateRenderable
|
||||
{
|
||||
/** @return string */
|
||||
public function getHtml();
|
||||
|
Loading…
Reference in New Issue
Block a user