PHP Class League\CommonMark\Block\Element\FencedCode

Inheritance: extends AbstractBlock
Afficher le fichier Open project: colinodell/commonmark-php

Protected Properties

Свойство Type Description
$char string
$info string
$length integer
$offset integer

Méthodes publiques

Méthode Description
__construct ( integer $length, string $char, integer $offset )
acceptsLines ( ) : boolean Returns true if block type can accept lines of text
canContain ( AbstractBlock $block ) : boolean Returns true if this block can contain the given block as a child node
finalize ( League\CommonMark\ContextInterface $context, $endLineNumber )
getChar ( ) : string
getInfo ( ) : string
getInfoWords ( ) : string[]
getLength ( ) : integer
getOffset ( ) : integer
handleRemainingContents ( League\CommonMark\ContextInterface $context, Cursor $cursor )
isCode ( ) : boolean Whether this is a code block
matchesNextLine ( Cursor $cursor )
setChar ( string $char )
setLength ( integer $length )
setOffset ( integer $offset )
shouldLastLineBeBlank ( Cursor $cursor, integer $currentLineNumber ) : boolean

Method Details

__construct() public méthode

public __construct ( integer $length, string $char, integer $offset )
$length integer
$char string
$offset integer

acceptsLines() public méthode

Returns true if block type can accept lines of text
public acceptsLines ( ) : boolean
Résultat boolean

canContain() public méthode

Returns true if this block can contain the given block as a child node
public canContain ( AbstractBlock $block ) : boolean
$block AbstractBlock
Résultat boolean

finalize() public méthode

public finalize ( League\CommonMark\ContextInterface $context, $endLineNumber )
$context League\CommonMark\ContextInterface

getChar() public méthode

public getChar ( ) : string
Résultat string

getInfo() public méthode

public getInfo ( ) : string
Résultat string

getInfoWords() public méthode

public getInfoWords ( ) : string[]
Résultat string[]

getLength() public méthode

public getLength ( ) : integer
Résultat integer

getOffset() public méthode

public getOffset ( ) : integer
Résultat integer

handleRemainingContents() public méthode

public handleRemainingContents ( League\CommonMark\ContextInterface $context, Cursor $cursor )
$context League\CommonMark\ContextInterface
$cursor League\CommonMark\Cursor

isCode() public méthode

Whether this is a code block
public isCode ( ) : boolean
Résultat boolean

matchesNextLine() public méthode

public matchesNextLine ( Cursor $cursor )
$cursor League\CommonMark\Cursor

setChar() public méthode

public setChar ( string $char )
$char string

setLength() public méthode

public setLength ( integer $length )
$length integer

setOffset() public méthode

public setOffset ( integer $offset )
$offset integer

shouldLastLineBeBlank() public méthode

public shouldLastLineBeBlank ( Cursor $cursor, integer $currentLineNumber ) : boolean
$cursor League\CommonMark\Cursor
$currentLineNumber integer
Résultat boolean

Property Details

$char protected_oe property

protected string $char
Résultat string

$info protected_oe property

protected string $info
Résultat string

$length protected_oe property

protected int $length
Résultat integer

$offset protected_oe property

protected int $offset
Résultat integer