Page MenuHomeWickedGov Phorge

SyntaxTree.php
No OneTemporary

Size
579 B
Referenced Files
None
Subscribers
None

SyntaxTree.php

<?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

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)

Event Timeline