Pane::getActiveCell()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
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\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