PHP Class League\CommonMark\Context

Inheritance: implements League\CommonMark\ContextInterface
Afficher le fichier Open project: colinodell/commonmark-php Class Usage Examples

Protected Properties

Свойство Type Description
$blockCloser UnmatchedBlockCloser
$blocksParsed boolean
$container League\CommonMark\Block\Element\AbstractBlock
$doc League\CommonMark\Block\Element\AbstractBlock
$environment Environment
$line string
$lineNumber integer
$referenceParser
$tip League\CommonMark\Block\Element\AbstractBlock | null

Méthodes publiques

Méthode Description
__construct ( Document $document, Environment $environment )
addBlock ( AbstractBlock $block ) : AbstractBlock
getBlockCloser ( ) : UnmatchedBlockCloser Finalize and close any unmatched blocks
getBlocksParsed ( ) : boolean
getContainer ( ) : AbstractBlock
getDocument ( ) : Document
getLine ( ) : string
getLineNumber ( ) : integer
getReferenceParser ( ) : ReferenceParser
getTip ( ) : AbstractBlock | null
replaceContainerBlock ( AbstractBlock $replacement )
setBlocksParsed ( boolean $bool )
setContainer ( AbstractBlock $container )
setNextLine ( string $line )
setTip ( AbstractBlock $block = null )

Method Details

__construct() public méthode

public __construct ( Document $document, Environment $environment )
$document League\CommonMark\Block\Element\Document
$environment Environment

addBlock() public méthode

public addBlock ( AbstractBlock $block ) : AbstractBlock
$block League\CommonMark\Block\Element\AbstractBlock
Résultat League\CommonMark\Block\Element\AbstractBlock

getBlockCloser() public méthode

Finalize and close any unmatched blocks
public getBlockCloser ( ) : UnmatchedBlockCloser
Résultat UnmatchedBlockCloser

getBlocksParsed() public méthode

public getBlocksParsed ( ) : boolean
Résultat boolean

getContainer() public méthode

public getContainer ( ) : AbstractBlock
Résultat League\CommonMark\Block\Element\AbstractBlock

getDocument() public méthode

public getDocument ( ) : Document
Résultat League\CommonMark\Block\Element\Document

getLine() public méthode

public getLine ( ) : string
Résultat string

getLineNumber() public méthode

public getLineNumber ( ) : integer
Résultat integer

getReferenceParser() public méthode

public getReferenceParser ( ) : ReferenceParser
Résultat ReferenceParser

getTip() public méthode

public getTip ( ) : AbstractBlock | null
Résultat League\CommonMark\Block\Element\AbstractBlock | null

replaceContainerBlock() public méthode

public replaceContainerBlock ( AbstractBlock $replacement )
$replacement League\CommonMark\Block\Element\AbstractBlock

setBlocksParsed() public méthode

public setBlocksParsed ( boolean $bool )
$bool boolean

setContainer() public méthode

public setContainer ( AbstractBlock $container )
$container League\CommonMark\Block\Element\AbstractBlock

setNextLine() public méthode

public setNextLine ( string $line )
$line string

setTip() public méthode

public setTip ( AbstractBlock $block = null )
$block League\CommonMark\Block\Element\AbstractBlock

Property Details

$blockCloser protected_oe property

protected UnmatchedBlockCloser,League\CommonMark $blockCloser
Résultat UnmatchedBlockCloser

$blocksParsed protected_oe property

protected bool $blocksParsed
Résultat boolean

$container protected_oe property

protected AbstractBlock,League\CommonMark\Block\Element $container
Résultat League\CommonMark\Block\Element\AbstractBlock

$doc protected_oe property

protected AbstractBlock,League\CommonMark\Block\Element $doc
Résultat League\CommonMark\Block\Element\AbstractBlock

$environment protected_oe property

protected Environment,League\CommonMark $environment
Résultat Environment

$line protected_oe property

protected string $line
Résultat string

$lineNumber protected_oe property

protected int $lineNumber
Résultat integer

$referenceParser protected_oe property

protected $referenceParser

$tip protected_oe property

protected AbstractBlock,League\CommonMark\Block\Element|null $tip
Résultat League\CommonMark\Block\Element\AbstractBlock | null