Documentation

BlockContinueParserWithInlinesInterface extends BlockContinueParserInterface
in

Interface for a block continuation parser

A block continue parser can only handle a single block instance. The current block being parsed is stored within this parser and can be returned once parsing has completed. If you need to parse multiple block continuations, instantiate a new parser for each one.

Table of Contents

Methods

addLine()  : void
Add the given line of text to the current block
canContain()  : bool
Determine whether the current block being parsed can contain the given child block
canHaveLazyContinuationLines()  : bool
Return whether we are interested in possibly lazily parsing any subsequent lines
closeBlock()  : void
Close and finalize the current block
getBlock()  : AbstractBlock
Return the current block being parsed by this parser
isContainer()  : bool
Return whether we are parsing a container block
parseInlines()  : void
Parse any inlines inside of the current block
tryContinue()  : BlockContinue|null
Attempt to parse the given line

Methods

addLine()

Add the given line of text to the current block

public addLine(string $line) : void
Parameters
$line : string

canHaveLazyContinuationLines()

Return whether we are interested in possibly lazily parsing any subsequent lines

public canHaveLazyContinuationLines() : bool
Return values
bool

        
On this page

Search results