Interfaces, Classes and Traits
- Parser
Table of Contents
-
$directives
: array<string|int, Directive>
-
$documentParser
: DocumentParser|null
-
$environment
: Environment
-
$eventManager
: EventManager
-
$filename
: string|null
-
$format
: Format
-
$references
: array<string|int, Reference>
-
__construct()
: mixed
-
getDocument()
: DocumentNode
-
getEnvironment()
: Environment
-
getFilename()
: string
-
getSubParser()
: Parser
-
initDirectives()
: void
-
initReferences()
: void
-
parse()
: DocumentNode
-
parseFragment()
: DocumentNode
-
parseLocal()
: DocumentNode
-
registerDirective()
: void
-
createDocumentParser()
: DocumentParser
$directives
private
array<string|int, Directive>
$directives
$documentParser
private
DocumentParser|null
$documentParser
$environment
private
Environment
$environment
$eventManager
private
EventManager
$eventManager
$filename
private
string|null
$filename
= null
private
Format
$format
$references
private
array<string|int, Reference>
$references
__construct()
public
__construct(Format $format, Environment $environment, EventManager $eventManager, array<string|int, Directive> $directives, array<string|int, Reference> $references) : mixed
Parameters
-
$format
: Format
-
-
$environment
: Environment
-
-
$eventManager
: EventManager
-
-
$directives
: array<string|int, Directive>
-
-
$references
: array<string|int, Reference>
-
Return values
mixed
—
getDocument()
public
getDocument() : DocumentNode
Return values
DocumentNode
—
getEnvironment()
public
getEnvironment() : Environment
Return values
Environment
—
getFilename()
public
getFilename() : string
Return values
string
—
getSubParser()
public
getSubParser() : Parser
Return values
Parser
—
initDirectives()
public
initDirectives(array<string|int, Directive> $directives) : void
Parameters
-
$directives
: array<string|int, Directive>
-
Return values
void
—
initReferences()
public
initReferences(array<string|int, Reference> $references) : void
Parameters
-
$references
: array<string|int, Reference>
-
Return values
void
—
parse()
public
parse(string $contents) : DocumentNode
Parameters
-
$contents
: string
-
Return values
DocumentNode
—
parseFragment()
public
parseFragment(string $contents) : DocumentNode
Parameters
-
$contents
: string
-
Return values
DocumentNode
—
parseLocal()
public
parseLocal(string $contents) : DocumentNode
Parameters
-
$contents
: string
-
Return values
DocumentNode
—
registerDirective()
public
registerDirective(Directive $directive) : void
Parameters
-
$directive
: Directive
-
Return values
void
—
createDocumentParser()
private
createDocumentParser() : DocumentParser
Return values
DocumentParser
—