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

Pane::setSqref()   A

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