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

Pane::getSqref()   A

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 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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