Tag::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
4
namespace App\Project\Domain\Article\Entity;
5
6
7
class Tag
8
{
9
10
    /**
11
     * @var integer
12
     */
13
    protected $id;
14
15
    /**
16
     * @var string
17
     */
18
    protected $title;
19
20
    /**
21
     * @var string
22
     */
23
    protected $slug;
24
25
    /**
26
     * @return int
27
     */
28
    public function getId(): int
29
    {
30
        return $this->id;
31
    }
32
33
34
    /**
35
     * @return string
36
     */
37
    public function getTitle(): string
38
    {
39
        return $this->title;
40
    }
41
42
    /**
43
     * @param string $title
44
     */
45
    public function setTitle(string $title)
46
    {
47
        $this->title = $title;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getSlug(): string
54
    {
55
        return $this->slug;
56
    }
57
58
    /**
59
     * @param string $slug
60
     */
61
    public function setSlug(string $slug)
62
    {
63
        $this->slug = $slug;
64
    }
65
66
67
68
}