Documentation

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

Properties

$destination

private string|null $destination = null
Tags
psalm-readonly-allow-private-mutation

$label

private string|null $label = null
Tags
psalm-readonly-allow-private-mutation

$paragraph

private string $paragraph = ''
Tags
psalm-readonly-allow-private-mutation

$referenceValid

private bool $referenceValid = false
Tags
psalm-readonly-allow-private-mutation

$state

private int $state = self::START_DEFINITION
Tags
psalm-readonly-allow-private-mutation

$title

private string $title = ''

string

Tags
psalm-readonly-allow-private-mutation

$titleDelimiter

private string|null $titleDelimiter = null
Tags
psalm-readonly-allow-private-mutation

Methods

getParagraphContent()

public getParagraphContent() : string
Return values
string

parse()

public parse(string $line) : void
Parameters
$line : string

        
On this page

Search results