PHP Класс League\CommonMark\Block\Element\HtmlBlock

Наследование: extends AbstractBlock
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$type integer

Открытые методы

Метод Описание
__construct ( integer $type )
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 )
getType ( ) : integer
handleRemainingContents ( League\CommonMark\ContextInterface $context, Cursor $cursor )
isCode ( ) : boolean Whether this is a code block
matchesNextLine ( Cursor $cursor )
setType ( integer $type )

Описание методов

__construct() публичный метод

public __construct ( integer $type )
$type integer

acceptsLines() публичный метод

Returns true if block type can accept lines of text
public acceptsLines ( ) : boolean
Результат boolean

canContain() публичный метод

Returns true if this block can contain the given block as a child node
public canContain ( AbstractBlock $block ) : boolean
$block AbstractBlock
Результат boolean

finalize() публичный метод

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

getType() публичный метод

public getType ( ) : integer
Результат integer

handleRemainingContents() публичный метод

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

isCode() публичный метод

Whether this is a code block
public isCode ( ) : boolean
Результат boolean

matchesNextLine() публичный метод

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

setType() публичный метод

public setType ( integer $type )
$type integer

Описание свойств

$type защищенное свойство

protected int $type
Результат integer