Add some more exotic type specialisations of block

This commit is contained in:
Aidan Woods 2019-01-20 02:22:56 +00:00
parent c17868cac8
commit 74a855946d
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<?php
namespace Erusev\Parsedown\Components;
use Erusev\Parsedown\Parsing\Context;
interface ContinuableBlock extends Block
{
/**
* @param Context $Context
* @return static|null
*/
public function continue(Context $Context);
/**
* @param bool $isInterrupted
* @return static
*/
public function interrupted($isInterrupted);
/**
* @return bool
*/
public function isInterrupted();
}

View File

@ -0,0 +1,11 @@
<?php
namespace Erusev\Parsedown\Components;
use Erusev\Parsedown\State;
interface StateUpdatingBlock extends Block
{
/** @return State */
public function latestState();
}