GeometryObject   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
eloc 9
c 0
b 0
f 0
dl 0
loc 27
ccs 10
cts 10
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getTitle() 0 3 1
A setTitle() 0 5 1
A getFeatureClass() 0 3 1
A setFeatureClass() 0 5 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