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

HasSettingsSectionDataTrait::getPage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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