ReferenceParser
in package
FinalYes
Table of Contents
Constants
- DESTINATION = 2
- LABEL = 1
- PARAGRAPH = 5
- START_DEFINITION = 0
- START_TITLE = 3
- TITLE = 4
Properties
- $destination : string|null
- $label : string|null
- $paragraph : string
- $references : array<int, ReferenceInterface>
- $referenceValid : bool
- $state : int
- $title : string
- $titleDelimiter : string|null
Methods
- getParagraphContent() : string
- getReferences() : array<string|int, ReferenceInterface>
- hasReferences() : bool
- parse() : void
- finishReference() : void
- parseDestination() : bool
- parseLabel() : bool
- parseStartDefinition() : bool
- parseStartTitle() : bool
- parseTitle() : bool
Constants
DESTINATION
private
mixed
DESTINATION
= 2
LABEL
private
mixed
LABEL
= 1
PARAGRAPH
private
mixed
PARAGRAPH
= 5
START_DEFINITION
private
mixed
START_DEFINITION
= 0
START_TITLE
private
mixed
START_TITLE
= 3
TITLE
private
mixed
TITLE
= 4
Properties
$destination
private
string|null
$destination
= null
Tags
$label
private
string|null
$label
= null
Tags
$paragraph
private
string
$paragraph
= ''
Tags
$references
private
array<int, ReferenceInterface>
$references
= []
Tags
$referenceValid
private
bool
$referenceValid
= false
Tags
$state
private
int
$state
= self::START_DEFINITION
Tags
$title
private
string
$title
= ''
string
Tags
$titleDelimiter
private
string|null
$titleDelimiter
= null
Tags
Methods
getParagraphContent()
public
getParagraphContent() : string
Return values
stringgetReferences()
public
getReferences() : array<string|int, ReferenceInterface>
Return values
array<string|int, ReferenceInterface>hasReferences()
public
hasReferences() : bool
Return values
boolparse()
public
parse(string $line) : void
Parameters
- $line : string
finishReference()
private
finishReference() : void
parseDestination()
private
parseDestination(Cursor $cursor) : bool
Parameters
- $cursor : Cursor
Return values
boolparseLabel()
private
parseLabel(Cursor $cursor) : bool
Parameters
- $cursor : Cursor
Return values
boolparseStartDefinition()
private
parseStartDefinition(Cursor $cursor) : bool
Parameters
- $cursor : Cursor
Return values
boolparseStartTitle()
private
parseStartTitle(Cursor $cursor) : bool
Parameters
- $cursor : Cursor
Return values
boolparseTitle()
private
parseTitle(Cursor $cursor) : bool
Parameters
- $cursor : Cursor