ParserContext
in package
Table of Contents
Properties
- $currentDirectory : string
- $currentFileName : string
- $documentNameResolver : DocumentNameResolverInterface
- $initialHeaderLevel : int
- $origin : FilesystemInterface
- $projectNode : ProjectNode
Methods
- __construct() : mixed
- absoluteRelativePath() : string
- getCurrentAbsolutePath() : string
- Return the current file's absolute path on the Origin file system.
- getCurrentDirectory() : string
- getCurrentFileName() : string
- getDirName() : string
- getInitialHeaderLevel() : int
- getLoggerInformation() : array<string, string>
- getOrigin() : FilesystemInterface
- getProjectNode() : ProjectNode
- getUrl() : string
Properties
$currentDirectory read-only
private
string
$currentDirectory
$currentFileName read-only
private
string
$currentFileName
$documentNameResolver read-only
private
DocumentNameResolverInterface
$documentNameResolver
$initialHeaderLevel read-only
private
int
$initialHeaderLevel
$origin read-only
private
FilesystemInterface
$origin
$projectNode read-only
private
ProjectNode
$projectNode
Methods
__construct()
public
__construct(ProjectNode $projectNode, string $currentFileName, string $currentDirectory, int $initialHeaderLevel, FilesystemInterface $origin, DocumentNameResolverInterface $documentNameResolver) : mixed
Parameters
- $projectNode : ProjectNode
- $currentFileName : string
- $currentDirectory : string
- $initialHeaderLevel : int
- $origin : FilesystemInterface
- $documentNameResolver : DocumentNameResolverInterface
absoluteRelativePath()
public
absoluteRelativePath(string $url) : string
Parameters
- $url : string
Return values
stringgetCurrentAbsolutePath()
Return the current file's absolute path on the Origin file system.
public
getCurrentAbsolutePath() : string
In order to load files relative to the current file (such as embedding UML diagrams) the environment must expose what the absolute path relative to the Origin is.
Tags
Return values
stringgetCurrentDirectory()
public
getCurrentDirectory() : string
Return values
stringgetCurrentFileName()
public
getCurrentFileName() : string
Return values
stringgetDirName()
public
getDirName() : string
Return values
stringgetInitialHeaderLevel()
public
getInitialHeaderLevel() : int
Return values
intgetLoggerInformation()
public
getLoggerInformation() : array<string, string>
Return values
array<string, string>getOrigin()
public
getOrigin() : FilesystemInterface
Return values
FilesystemInterfacegetProjectNode()
public
getProjectNode() : ProjectNode
Return values
ProjectNodegetUrl()
public
getUrl() : string