-
Notifications
You must be signed in to change notification settings - Fork 4
/
ProcessorInterface.php
31 lines (22 loc) · 1.15 KB
/
ProcessorInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
declare(strict_types=1);
namespace Remorhaz\JSON\Path\Processor;
use Remorhaz\JSON\Data\Value\NodeValueInterface;
use Remorhaz\JSON\Path\Processor\Result\ValueResultInterface;
use Remorhaz\JSON\Path\Processor\Result\SelectOnePathResultInterface;
use Remorhaz\JSON\Path\Processor\Result\SelectPathsResultInterface;
use Remorhaz\JSON\Path\Processor\Result\SelectResultInterface;
use Remorhaz\JSON\Path\Query\QueryInterface;
interface ProcessorInterface
{
public function select(QueryInterface $query, NodeValueInterface $rootNode): SelectResultInterface;
public function selectOne(QueryInterface $query, NodeValueInterface $rootNode): ValueResultInterface;
public function selectPaths(QueryInterface $query, NodeValueInterface $rootNode): SelectPathsResultInterface;
public function selectOnePath(QueryInterface $query, NodeValueInterface $rootNode): SelectOnePathResultInterface;
public function delete(QueryInterface $query, NodeValueInterface $rootNode): ValueResultInterface;
public function replace(
QueryInterface $query,
NodeValueInterface $rootNode,
NodeValueInterface $newNode,
): ValueResultInterface;
}