Passed
Branch main (a3ac80)
by Frank
02:08
created

GeometryObject::setFeatureClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 1
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace PrinsFrank\PhpGeoSVG\Geometry\GeometryObject;
5
6
abstract class GeometryObject
7
{
8
    protected ?string $title        = null;
9
    protected ?string $featureClass = null;
10
11 1
    public function setTitle(?string $title): self
12
    {
13 1
        $this->title = $title;
14
15 1
        return $this;
16
    }
17
18 1
    public function getTitle(): ?string
19
    {
20 1
        return $this->title;
21
    }
22
23 1
    public function setFeatureClass(string $featureClass): self
24
    {
25 1
        $this->featureClass = $featureClass;
26
27 1
        return $this;
28
    }
29
30 1
    public function getFeatureClass(): ?string
31
    {
32 1
        return $this->featureClass;
33
    }
34
}
35