NameTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 3 1
A getName() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: siim
5
 * Date: 15.02.19
6
 * Time: 9:03
7
 */
8
9
namespace Sf4\Api\Entity\Traits;
10
11
trait NameTrait
12
{
13
    /** @var string|null $name */
14
    protected $name;
15
16
    /**
17
     * @return string|null
18
     */
19
    public function getName(): ?string
20
    {
21
        return $this->name;
22
    }
23
24
    /**
25
     * @param string|null $name
26
     */
27
    public function setName(?string $name): void
28
    {
29
        $this->name = $name;
30
    }
31
}
32