Test Failed
Push — master ( 2c2c87...ed1c51 )
by Chris
25:05 queued 37s
created

HasSettingsSectionDataTrait::getDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Leonidas\Library\Admin\Page\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