Pane::setSqref()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace PhpOffice\PhpSpreadsheet\Worksheet;
4
5
class Pane
6
{
7
    private string $sqref;
8
9
    private string $activeCell;
10
11
    private string $position;
12
13 58
    public function __construct(string $position, string $sqref = '', string $activeCell = '')
14
    {
15 58
        $this->sqref = $sqref;
16 58
        $this->activeCell = $activeCell;
17 58
        $this->position = $position;
18
    }
19
20 1
    public function getPosition(): string
21
    {
22 1
        return $this->position;
23
    }
24
25 1
    public function getSqref(): string
26
    {
27 1
        return $this->sqref;
28
    }
29
30
    public function setSqref(string $sqref): self
31
    {
32
        $this->sqref = $sqref;
33
34
        return $this;
35
    }
36
37 1
    public function getActiveCell(): string
38
    {
39 1
        return $this->activeCell;
40
    }
41
42
    public function setActiveCell(string $activeCell): self
43
    {
44
        $this->activeCell = $activeCell;
45
46
        return $this;
47
    }
48
}
49