AbstractBlockContinueParser
in package
implements
BlockContinueParserInterface
AbstractYes
Base class for a block parser
Slightly more convenient to extend from vs. implementing the interface
Table of Contents
Interfaces
- BlockContinueParserInterface
- Interface for a block continuation parser
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
- isContainer() : bool
- Return whether we are parsing a container block
Methods
addLine()
Add the given line of text to the current block
public
addLine(string $line) : void
Parameters
- $line : string
canContain()
Determine whether the current block being parsed can contain the given child block
public
canContain(AbstractBlock $childBlock) : bool
Parameters
- $childBlock : AbstractBlock
Return values
boolcanHaveLazyContinuationLines()
Return whether we are interested in possibly lazily parsing any subsequent lines
public
canHaveLazyContinuationLines() : bool
Return values
boolcloseBlock()
Close and finalize the current block
public
closeBlock() : void
isContainer()
Return whether we are parsing a container block
public
isContainer() : bool