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
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace AppBundle\Entity;
4
5
/**
6
 * Tag.
7
 */
8
class Tag
9
{
10
    /**
11
     * @var int
12
     */
13
    private $id;
14
15
    /**
16
     * @var string
17
     */
18
    private $name;
19
20
    /**
21
     * @var bool
22
     */
23
    private $restricted;
24
25
    private $videos;
26
27
    /**
28
     * @return mixed
29
     */
30
    public function getVideos()
31
    {
32
        return $this->videos;
33
    }
34
35
    /**
36
     * @param mixed $videos
37
     */
38
    public function setVideos($videos)
39
    {
40
        $this->videos = $videos;
41
    }
42
43
    /**
44
     * Get id.
45
     *
46
     * @return int
47
     */
48
    public function getId()
49
    {
50
        return $this->id;
51
    }
52
53
    /**
54
     * Set name.
55
     *
56
     * @param string $name
57
     *
58
     * @return Tag
59
     */
60
    public function setName($name)
61
    {
62
        $this->name = $name;
63
64
        return $this;
65
    }
66
67
    /**
68
     * Get name.
69
     *
70
     * @return string
71
     */
72
    public function getName()
73
    {
74
        return $this->name;
75
    }
76
77
    /**
78
     * Set restricted.
79
     *
80
     * @param bool $restricted
81
     *
82
     * @return Tag
83
     */
84
    public function setRestricted($restricted)
85
    {
86
        $this->restricted = $restricted;
87
88
        return $this;
89
    }
90
91
    /**
92
     * Get restricted.
93
     *
94
     * @return bool
95
     */
96
    public function getRestricted()
97
    {
98
        return $this->restricted;
99
    }
100
101
    public function __construct()
102
    {
103
        $this->videos = new \Doctrine\Common\Collections\ArrayCollection();
104
    }
105
}
106