GeometryObject::setFeatureClass()   A
last analyzed

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
3
declare(strict_types=1);
4
5
namespace PrinsFrank\PhpGeoSVG\Geometry\GeometryObject;
6
7
abstract class GeometryObject
8
{
9
    protected ?string $title        = null;
10
    protected ?string $featureClass = null;
11
12 1
    public function setTitle(?string $title): self
13
    {
14 1
        $this->title = $title;
15
16 1
        return $this;
17
    }
18
19 1
    public function getTitle(): ?string
20
    {
21 1
        return $this->title;
22
    }
23
24 1
    public function setFeatureClass(string $featureClass): self
25
    {
26 1
        $this->featureClass = $featureClass;
27
28 1
        return $this;
29
    }
30
31 1
    public function getFeatureClass(): ?string
32
    {
33 1
        return $this->featureClass;
34
    }
35
}
36