Completed
Push — master ( 12d04d...f0be6a )
by Albert
02:59
created

Tag   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 5
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 45
ccs 0
cts 20
cp 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
A getSlug() 0 4 1
A setSlug() 0 4 1
1
<?php
2
3
namespace Albert221\Blog\Entity;
4
5
/**
6
 * @Entity(repositoryClass="\Albert221\Blog\Repository\Database\TagRepository") @Table(name="tags")
7
 */
8
class Tag
9
{
10
    /**
11
     * @var int Id
12
     * @Id @Column(type="integer") @GeneratedValue
13
     */
14
    protected $id;
15
16
    /**
17
     * @var string Name
18
     * @Column(type="string")
19
     */
20
    protected $name;
21
22
    /**
23
     * @var string Slug
24
     * @Column(type="string", unique=true)
25
     */
26
    protected $slug;
27
28
    public function getId()
29
    {
30
        return $this->id;
31
    }
32
33
    public function getName()
34
    {
35
        return $this->name;
36
    }
37
38
    public function setName($name)
39
    {
40
        $this->name = $name;
41
    }
42
43
    public function getSlug()
44
    {
45
        return $this->slug;
46
    }
47
48
    public function setSlug($slug)
49
    {
50
        $this->slug = $slug;
51
    }
52
}
53