for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Remorhaz\JSON\Path\Value;
use ArrayIterator;
use Iterator;
use Remorhaz\JSON\Data\Value\ArrayValueInterface;
use Remorhaz\JSON\Data\Value\ValueInterface;
final class LiteralArrayValue implements ArrayValueInterface, LiteralValueInterface
{
private $indexMap;
private $values;
public function __construct(IndexMapInterface $indexMap, ValueInterface ...$values)
$this->indexMap = $indexMap;
$this->values = $values;
}
public function createChildIterator(): Iterator
return new ArrayIterator($this->values);