Pane   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Test Coverage

Coverage 62.5%

Importance

Changes 0
Metric Value
wmc 6
eloc 14
dl 0
loc 42
ccs 10
cts 16
cp 0.625
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getPosition() 0 3 1
A setActiveCell() 0 5 1
A getSqref() 0 3 1
A getActiveCell() 0 3 1
A setSqref() 0 5 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