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

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

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

Свойство Тип Описание
$char string
$info string
$length integer
$offset integer

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

Метод Описание
__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

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

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

public __construct ( integer $length, string $char, integer $offset )
$length integer
$char string
$offset 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

getChar() публичный Метод

public getChar ( ) : string
Результат string

getInfo() публичный Метод

public getInfo ( ) : string
Результат string

getInfoWords() публичный Метод

public getInfoWords ( ) : string[]
Результат string[]

getLength() публичный Метод

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

getOffset() публичный Метод

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

setChar() публичный Метод

public setChar ( string $char )
$char string

setLength() публичный Метод

public setLength ( integer $length )
$length integer

setOffset() публичный Метод

public setOffset ( integer $offset )
$offset integer

shouldLastLineBeBlank() публичный Метод

public shouldLastLineBeBlank ( Cursor $cursor, integer $currentLineNumber ) : boolean
$cursor League\CommonMark\Cursor
$currentLineNumber integer
Результат boolean

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

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

protected string $char
Результат string

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

protected string $info
Результат string

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

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

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

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