PHP Class League\CommonMark\Block\Element\FencedCode

Inheritance: extends AbstractBlock
Datei anzeigen Open project: colinodell/commonmark-php

Protected Properties

Property Type Description
$char string
$info string
$length integer
$offset integer

Public Methods

Method Description
__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

Method Details

__construct() public method

public __construct ( integer $length, string $char, integer $offset )
$length integer
$char string
$offset integer

acceptsLines() public method

Returns true if block type can accept lines of text
public acceptsLines ( ) : boolean
return boolean

canContain() public method

Returns true if this block can contain the given block as a child node
public canContain ( AbstractBlock $block ) : boolean
$block AbstractBlock
return boolean

finalize() public method

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

getChar() public method

public getChar ( ) : string
return string

getInfo() public method

public getInfo ( ) : string
return string

getInfoWords() public method

public getInfoWords ( ) : string[]
return string[]

getLength() public method

public getLength ( ) : integer
return integer

getOffset() public method

public getOffset ( ) : integer
return integer

handleRemainingContents() public method

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

isCode() public method

Whether this is a code block
public isCode ( ) : boolean
return boolean

matchesNextLine() public method

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

setChar() public method

public setChar ( string $char )
$char string

setLength() public method

public setLength ( integer $length )
$length integer

setOffset() public method

public setOffset ( integer $offset )
$offset integer

shouldLastLineBeBlank() public method

public shouldLastLineBeBlank ( Cursor $cursor, integer $currentLineNumber ) : boolean
$cursor League\CommonMark\Cursor
$currentLineNumber integer
return boolean

Property Details

$char protected_oe property

protected string $char
return string

$info protected_oe property

protected string $info
return string

$length protected_oe property

protected int $length
return integer

$offset protected_oe property

protected int $offset
return integer