Completed
Push — master ( c15895...5432fb )
by Peter
22:43
created

Project::setLink()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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