mirror of
https://github.com/cerbero90/json-parser.git
synced 2025-03-15 08:09:50 +01:00
Create null pointer
This commit is contained in:
parent
99d0586baa
commit
382a553f9d
33
src/Pointers/NullPointer.php
Normal file
33
src/Pointers/NullPointer.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Cerbero\JsonParser\Pointers;
|
||||
|
||||
/**
|
||||
* The null pointer.
|
||||
*
|
||||
*/
|
||||
class NullPointer extends Pointer
|
||||
{
|
||||
/**
|
||||
* The reference tokens.
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected array $referenceTokens = [];
|
||||
|
||||
/**
|
||||
* The pointer depth.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected int $depth = 0;
|
||||
|
||||
/**
|
||||
* Instantiate the class.
|
||||
*
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->pointer = '';
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user