Create null pointer

This commit is contained in:
Andrea Marco Sartori 2022-09-20 18:07:09 +02:00
parent 99d0586baa
commit 382a553f9d

View 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 = '';
}
}