Passed
Push — master ( acf20f...3ef8ec )
by
unknown
12:14 queued 14s
created

IgnoredErrors::getFormulaRange()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 1
cts 1
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace PhpOffice\PhpSpreadsheet\Cell;
4
5
class IgnoredErrors
6
{
7
    private bool $numberStoredAsText = false;
8
9
    private bool $formula = false;
10
11
    private bool $formulaRange = false;
12
13
    private bool $twoDigitTextYear = false;
14
15 8
    private bool $evalError = false;
16
17 8
    public function setNumberStoredAsText(bool $value): self
18
    {
19 8
        $this->numberStoredAsText = $value;
20
21
        return $this;
22 347
    }
23
24 347
    public function getNumberStoredAsText(): bool
25
    {
26
        return $this->numberStoredAsText;
27 1
    }
28
29 1
    public function setFormula(bool $value): self
30
    {
31 1
        $this->formula = $value;
32
33
        return $this;
34 342
    }
35
36 342
    public function getFormula(): bool
37
    {
38
        return $this->formula;
39 1
    }
40
41 1
    public function setFormulaRange(bool $value): self
42
    {
43 1
        $this->formulaRange = $value;
44
45
        return $this;
46 342
    }
47
48 342
    public function getFormulaRange(): bool
49
    {
50
        return $this->formulaRange;
51 1
    }
52
53 1
    public function setTwoDigitTextYear(bool $value): self
54
    {
55 1
        $this->twoDigitTextYear = $value;
56
57
        return $this;
58 342
    }
59
60 342
    public function getTwoDigitTextYear(): bool
61
    {
62
        return $this->twoDigitTextYear;
63
    }
64
65
    public function setEvalError(bool $value): self
66
    {
67
        $this->evalError = $value;
68
69
        return $this;
70
    }
71
72
    public function getEvalError(): bool
73
    {
74
        return $this->evalError;
75
    }
76
}
77