Description   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 0 Features 1
Metric Value
wmc 2
eloc 5
c 4
b 0
f 1
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 3 1
A setDescription() 0 4 1
1
<?php
2
3
namespace Enjoys\Forms\Traits;
4
5
trait Description
6
{
7
    private ?string $description = null;
8
9 5
    public function setDescription(?string $description = null): static
10
    {
11 5
        $this->description = $description;
12 5
        return $this;
13
    }
14
15 19
    public function getDescription(): ?string
16
    {
17 19
        return $this->description;
18
    }
19
}
20