Test Failed
Push — master ( fdb79d...2e4512 )
by Chris
19:35
created

HasSystemModelTypeDataTrait::getPluralLabel()   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
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Leonidas\Library\System\Traits;
4
5
trait HasSystemModelTypeDataTrait
6
{
7
    protected string $name;
8
9
    protected string $singularLabel;
10
11
    protected string $pluralLabel;
12
13
    protected string $description;
14
15
    protected array $capabilities;
16
17
    /**
18
     * @var bool|array
19
     */
20
    protected $rewrite;
21
22
    protected array $props;
23
24
    protected array $labels;
25
26
    protected array $options;
27
28
    public function getName(): string
29
    {
30
        return $this->name;
31
    }
32
33
    public function getPluralLabel(): string
34
    {
35
        return $this->pluralLabel;
36
    }
37
38
    public function getSingularLabel(): string
39
    {
40
        return $this->singularLabel;
41
    }
42
43
    public function getDescription(): string
44
    {
45
        return $this->description;
46
    }
47
48
    public function getCapabilities(): array
49
    {
50
        return $this->capabilities;
51
    }
52
53
    /**
54
     * @return bool|string
55
     */
56
    public function getRewrite()
57
    {
58
        return $this->rewrite;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->rewrite also could return the type array which is incompatible with the documented return type boolean|string.
Loading history...
59
    }
60
61
    public function getProps(): array
62
    {
63
        return $this->props;
64
    }
65
66
    public function getOptions(): array
67
    {
68
        return $this->options;
69
    }
70
71
    public function getLabels()
72
    {
73
        return $this->labels;
74
    }
75
}
76