Nameable   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setName() 0 4 1
1
<?php
2
/**
3
 * User: alec
4
 * Date: 19.11.18
5
 * Time: 19:52
6
 */
7
declare(strict_types=1);
8
9
namespace AlecRabbit\Traits;
10
11
trait Nameable
12
{
13
    use GettableName;
14
15
    /**
16
     * @param string $name
17
     * @return self
18
     */
19 1
    public function setName(string $name): self
20
    {
21 1
        $this->name = $name;
22 1
        return $this;
23
    }
24
}
25