class League / CommonMark / Reference / ReferenceParser
You are viewing an older version of the documentation. For the latest, please visit 2.4 documentation.
final

ReferenceParser

Constants

private

START_DEFINITION

private

LABEL

Default: 1
private

DESTINATION

Default: 2
private

START_TITLE

Default: 3
private

TITLE

Default: 4
private

PARAGRAPH

Default: 5

Properties

private

$paragraph

Default: ''
private

$references array

Default: []
private

$state

Default: START_DEFINITION
private

$label

Default: null
private

$destination

Default: null
private

$title string

string

Default: ''
private

$titleDelimiter

Default: null
private

$referenceValid

Default: false

Methods

public

getParagraphContent ( ) : void

public

getReferences ( ) : ReferenceInterface[]

public

hasReferences ( ) : void

public

parse ( string $line ) : void

private

parseStartDefinition ( Cursor $cursor ) : void

private

parseLabel ( Cursor $cursor ) : void

private

parseDestination ( Cursor $cursor ) : void

private

parseStartTitle ( Cursor $cursor ) : void

private

parseTitle ( Cursor $cursor ) : void

private

finishReference ( ) : void