Passed
Push — feature/cleanup ( f97f45 )
by Fike
05:53
created

Context::shouldIgnoreIllegal()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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