Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5975400
SyntaxTree.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
579 B
Referenced Files
None
Subscribers
None
SyntaxTree.php
View Options
<?php
namespace
Shellbox\ShellParser
;
/**
* A wrapper for the shell syntax tree, providing a higher-level API.
*/
class
SyntaxTree
{
/** @var Node */
private
$root
;
/**
* @internal Use ShellParser::parse()
*
* @param Node $root
*/
public
function
__construct
(
$root
)
{
$this
->
root
=
$root
;
}
/**
* Get the root node
*
* @return Node
*/
public
function
getRoot
()
{
return
$this
->
root
;
}
/**
* Extract information about the syntax tree
*
* @return SyntaxInfo
*/
public
function
getInfo
()
{
return
new
SyntaxInfo
(
$this
->
root
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 18:12 (20 h, 9 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b6/22/69b492e6ed46e6ad54ba437d296d
Default Alt Text
SyntaxTree.php (579 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment