Failed Conditions
Pull Request — master (#3876)
by Abdul Malik
22:45 queued 13:31
created

Pane   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 57.14%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
eloc 8
dl 0
loc 33
ccs 8
cts 14
cp 0.5714
rs 10
c 1
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getSqref() 0 3 1
A __construct() 0 2 1
A getPosition() 0 3 1
A setActiveCell() 0 5 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 56
    public function __construct(private string $position, private string $sqref = '', private string $activeCell = '')
8
    {
9 56
    }
10
11 1
    public function getPosition(): string
12
    {
13 1
        return $this->position;
14
    }
15
16 1
    public function getSqref(): string
17
    {
18 1
        return $this->sqref;
19
    }
20
21
    public function setSqref(string $sqref): self
22
    {
23
        $this->sqref = $sqref;
24
25
        return $this;
26
    }
27
28 1
    public function getActiveCell(): string
29
    {
30 1
        return $this->activeCell;
31
    }
32
33
    public function setActiveCell(string $activeCell): self
34
    {
35
        $this->activeCell = $activeCell;
36
37
        return $this;
38
    }
39
}
40