Permission::getDescription()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Eziat\PermissionBundle\Entity;
6
7
use Eziat\PermissionBundle\Model\PermissionInterface;
8
9
/**
10
 * @author Tomas Jakl <[email protected]>
11
 */
12
abstract class Permission implements PermissionInterface
13
{
14
    /**
15
     * @var string
16
     */
17
    protected $name = '';
18
19
    /**
20
     * @var string
21
     */
22
    protected $description = '';
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function setName(string $name) : PermissionInterface
28
    {
29
        $this->name = $name;
30
31
        return $this;
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function getName() : string
38
    {
39
        return $this->name;
40
    }
41
42
    /**
43
     * {@inheritdoc}
44
     */
45
    public function setDescription(string $description) : PermissionInterface
46
    {
47
        $this->description = $description;
48
49
        return $this;
50
    }
51
52
    /**
53
     * {@inheritdoc}
54
     */
55
    public function getDescription() : string
56
    {
57
        return $this->description;
58
    }
59
}