Completed
Push — master ( 0acfd1...8c96cb )
by Edward
08:27
created

Runtime::fetchChildrenDeep()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
c 0
b 0
f 0
nc 1
nop 2
dl 0
loc 7
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
declare(strict_types=1);
3
4
namespace Remorhaz\JSON\Path\Runtime;
5
6
final class Runtime implements RuntimeInterface
7
{
8
9
    private $valueListFetcher;
10
11
    private $evaluator;
12
13
    private $literalFactory;
14
15
    private $matcherFactory;
16
17
    public function __construct(
18
        ValueListFetcherInterface $valueListFetcher,
19
        EvaluatorInterface $evaluator,
20
        LiteralFactoryInterface $literalFactory,
21
        Matcher\MatcherFactoryInterface $matcherFactory
22
    ) {
23
        $this->valueListFetcher = $valueListFetcher;
24
        $this->evaluator = $evaluator;
25
        $this->literalFactory = $literalFactory;
26
        $this->matcherFactory = $matcherFactory;
27
    }
28
29
    public function getEvaluator(): EvaluatorInterface
30
    {
31
        return $this->evaluator;
32
    }
33
34
    public function getLiteralFactory(): LiteralFactoryInterface
35
    {
36
        return $this->literalFactory;
37
    }
38
39
    public function getMatcherFactory(): Matcher\MatcherFactoryInterface
40
    {
41
        return $this->matcherFactory;
42
    }
43
44
    public function getValueListFetcher(): ValueListFetcherInterface
45
    {
46
        return $this->valueListFetcher;
47
    }
48
}
49