Passed
Push — master ( 78e027...fa2487 )
by Edward
02:26
created

QueryProperties::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 1
b 0
f 1
cc 1
nc 1
nop 2
1
<?php
2
declare(strict_types=1);
3
4
namespace Remorhaz\JSON\Path\Query;
5
6
final class QueryProperties implements QueryPropertiesInterface
7
{
8
9
    private $isDefinite;
10
11
    private $isPath;
12
13
    public function __construct(bool $isDefinite, bool $isPath)
14
    {
15
        $this->isDefinite = $isDefinite;
16
        $this->isPath = $isPath;
17
    }
18
19
    /**
20
     * @return bool
21
     */
22
    public function isDefinite(): bool
23
    {
24
        return $this->isDefinite;
25
    }
26
27
    /**
28
     * @return bool
29
     */
30
    public function isPath(): bool
31
    {
32
        return $this->isPath;
33
    }
34
}
35