Implement state

This commit is contained in:
Andrea Marco Sartori 2022-09-20 18:08:21 +02:00
parent 0704031787
commit f6fb63fa7c

View File

@ -8,5 +8,33 @@ namespace Cerbero\JsonParser;
*/
class State
{
//
/**
* The JSON tree.
*
* @var Tree
*/
public Tree $tree;
/**
* Whether the tree changed.
*
* @var bool
*/
public bool $treeChanged = false;
/**
* The JSON buffer.
*
* @var string
*/
public string $buffer = '';
/**
* Instantiate the class.
*
*/
public function __construct()
{
$this->tree = new Tree();
}
}