Test Failed
Push — master ( 135f34...8b25c6 )
by Chris
33:49
created

HasSettingsSectionDataTrait   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 9
dl 0
loc 28
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getTitle() 0 3 1
A getPage() 0 3 1
A getDescription() 0 3 1
A getId() 0 3 1
1
<?php
2
3
namespace Leonidas\Library\Admin\Component\SettingsSection\Traits;
4
5
trait HasSettingsSectionDataTrait
6
{
7
    public string $id;
8
9
    public string $title;
10
11
    public string $page;
12
13
    public ?string $description = null;
14
15
    public function getId(): string
16
    {
17
        return $this->id;
18
    }
19
20
    public function getTitle(): string
21
    {
22
        return $this->title;
23
    }
24
25
    public function getPage(): string
26
    {
27
        return $this->page;
28
    }
29
30
    public function getDescription(): string
31
    {
32
        return $this->description;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->description could return the type null which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.
Loading history...
33
    }
34
}
35