Project::setLink()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace AppBundle\Entity;
4
5
/**
6
 * Project class
7
 */
8
class Project
9
{
10
    /**
11
     * @var int
12
     */
13
    protected $id;
14
15
    /**
16
     * @var string
17
     */
18
    private $title;
19
20
    /**
21
     * @var string
22
     */
23
    private $description;
24
25
    /**
26
     * @var string
27
     */
28
    private $link;
29
30
    /**
31
     * @var string
32
     */
33
    private $repository;
34
35
    /**
36
     * @var string
37
     */
38
    private $slug;
39
40
    /**
41
     * @var \DateTime $created
42
     */
43
    private $created;
44
45
    /**
46
     * @var \DateTime $updated
47
     */
48
    private $updated;
49
50
    /**
51
     * Get id
52
     *
53
     * @return integer
54
     */
55
    public function getId()
56
    {
57
        return $this->id;
58
    }
59
60
    /**
61
     * Set title
62
     *
63
     * @param string $title
64
     * @return Project
65
     */
66
    public function setTitle($title)
67
    {
68
        $this->title = $title;
69
70
        return $this;
71
    }
72
73
    /**
74
     * Get title
75
     *
76
     * @return string
77
     */
78
    public function getTitle()
79
    {
80
        return $this->title;
81
    }
82
83
    /**
84
     * Set description
85
     *
86
     * @param string $description
87
     * @return Project
88
     */
89
    public function setDescription($description)
90
    {
91
        $this->description = $description;
92
93
        return $this;
94
    }
95
96
    /**
97
     * Get description
98
     *
99
     * @return string
100
     */
101
    public function getDescription()
102
    {
103
        return $this->description;
104
    }
105
106
    /**
107
     * Set link
108
     *
109
     * @param string $link
110
     * @return Project
111
     */
112
    public function setLink($link)
113
    {
114
        $this->link = $link;
115
116
        return $this;
117
    }
118
119
    /**
120
     * Get link
121
     *
122
     * @return string
123
     */
124
    public function getLink()
125
    {
126
        return $this->link;
127
    }
128
129
    /**
130
     * Set repository
131
     *
132
     * @param string $repository
133
     * @return Project
134
     */
135
    public function setRepository($repository)
136
    {
137
        $this->repository = $repository;
138
139
        return $this;
140
    }
141
142
    /**
143
     * Get repository
144
     *
145
     * @return string
146
     */
147
    public function getRepository()
148
    {
149
        return $this->repository;
150
    }
151
152
    /**
153
     * Set slug
154
     *
155
     * @param string $slug
156
     * @return Project
157
     */
158
    public function setSlug($slug)
159
    {
160
        $this->slug = $slug;
161
162
        return $this;
163
    }
164
165
    /**
166
     * Get slug
167
     *
168
     * @return string
169
     */
170
    public function getSlug()
171
    {
172
        return $this->slug;
173
    }
174
175
    public function getCreated()
176
    {
177
        return $this->created;
178
    }
179
180
    public function getUpdated()
181
    {
182
        return $this->updated;
183
    }
184
}
185