Completed
Push — master ( ae410f...f98fce )
by Edward
06:21
created

Capabilities   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 27
ccs 8
cts 8
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A isDefinite() 0 3 1
A isAddressable() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Remorhaz\JSON\Path\Query;
5
6
final class Capabilities implements CapabilitiesInterface
7
{
8
9
    private $isDefinite;
10
11
    private $isPath;
12
13 4
    public function __construct(bool $isDefinite, bool $isPath)
14
    {
15 4
        $this->isDefinite = $isDefinite;
16 4
        $this->isPath = $isPath;
17 4
    }
18
19
    /**
20
     * @return bool
21
     */
22 2
    public function isDefinite(): bool
23
    {
24 2
        return $this->isDefinite;
25
    }
26
27
    /**
28
     * @return bool
29
     */
30 2
    public function isAddressable(): bool
31
    {
32 2
        return $this->isPath;
33
    }
34
}
35