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

Наследование: extends AbstractBlock, implements League\CommonMark\Block\Element\InlineContainer
Показать файл Открыть проект Примеры использования класса

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

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

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

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

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

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

public __construct ( integer $level, string | string[] $contents )
$level integer
$contents string | string[]

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

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

public getLevel ( ) : 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

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

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

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