mirror of
https://github.com/erusev/parsedown.git
synced 2025-09-03 20:02:33 +02:00
Add some more exotic type specialisations of block
This commit is contained in:
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();
|
||||
}
|
Reference in New Issue
Block a user