Passed
Push — feature/cleanup ( d46e4b )
by Fike
02:24
created

Context   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 47
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A shouldIgnoreIllegal() 0 4 1
A setIgnoreIllegal() 0 5 1
A shouldIgnoreMissing() 0 4 1
A setIgnoreMissing() 0 5 1
1
<?php
2
3
namespace AmaTeam\TreeAccess\Locator;
4
5
class Context
6
{
7
    /**
8
     * @var bool
9
     */
10
    private $ignoreIllegal = false;
11
    /**
12
     * @var bool
13
     */
14
    private $ignoreMissing = false;
15
16
    /**
17
     * @return bool
18
     */
19 1
    public function shouldIgnoreIllegal()
20
    {
21 1
        return $this->ignoreIllegal;
22
    }
23
24
    /**
25
     * @param bool $ignoreIllegal
26
     * @return $this
27
     */
28 17
    public function setIgnoreIllegal($ignoreIllegal)
29
    {
30 17
        $this->ignoreIllegal = $ignoreIllegal;
31 17
        return $this;
32
    }
33
34
    /**
35
     * @return bool
36
     */
37 3
    public function shouldIgnoreMissing()
38
    {
39 3
        return $this->ignoreMissing;
40
    }
41
42
    /**
43
     * @param bool $ignoreMissing
44
     * @return $this
45
     */
46 17
    public function setIgnoreMissing($ignoreMissing)
47
    {
48 17
        $this->ignoreMissing = $ignoreMissing;
49 17
        return $this;
50
    }
51
}
52