Passed
Push — master ( f8cb93...547c02 )
by Siim
12:38
created

NameTrait::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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