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

상속: extends AbstractBlock
파일 보기 프로젝트 열기: colinodell/commonmark-php

보호된 프로퍼티들

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