mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Add some more exotic type specialisations of block
This commit is contained in:
parent
c17868cac8
commit
74a855946d
25
src/Components/ContinuableBlock.php
Normal file
25
src/Components/ContinuableBlock.php
Normal 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();
|
||||
}
|
11
src/Components/StateUpdatingBlock.php
Normal file
11
src/Components/StateUpdatingBlock.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Erusev\Parsedown\Components;
|
||||
|
||||
use Erusev\Parsedown\State;
|
||||
|
||||
interface StateUpdatingBlock extends Block
|
||||
{
|
||||
/** @return State */
|
||||
public function latestState();
|
||||
}
|
Loading…
Reference in New Issue
Block a user