PHP 클래스 League\CommonMark\Block\Element\Heading

상속: extends AbstractBlock, implements League\CommonMark\Block\Element\InlineContainer
파일 보기 프로젝트 열기: colinodell/commonmark-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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