mirror of
https://github.com/cerbero90/json-parser.git
synced 2025-04-15 08:15:10 +02:00
Implement state
This commit is contained in:
parent
0704031787
commit
f6fb63fa7c
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user