1 | <?php |
||
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() |
||
70 | |||
71 | /** |
||
72 | * Set title |
||
73 | * |
||
74 | * @param string $title |
||
75 | * @return Project |
||
76 | */ |
||
77 | public function setTitle($title) |
||
83 | |||
84 | /** |
||
85 | * Get title |
||
86 | * |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getTitle() |
||
93 | |||
94 | /** |
||
95 | * Set description |
||
96 | * |
||
97 | * @param string $description |
||
98 | * @return Project |
||
99 | */ |
||
100 | public function setDescription($description) |
||
106 | |||
107 | /** |
||
108 | * Get description |
||
109 | * |
||
110 | * @return string |
||
111 | */ |
||
112 | public function getDescription() |
||
116 | |||
117 | /** |
||
118 | * Set link |
||
119 | * |
||
120 | * @param string $link |
||
121 | * @return Project |
||
122 | */ |
||
123 | public function setLink($link) |
||
129 | |||
130 | /** |
||
131 | * Get link |
||
132 | * |
||
133 | * @return string |
||
134 | */ |
||
135 | public function getLink() |
||
139 | |||
140 | /** |
||
141 | * Set repository |
||
142 | * |
||
143 | * @param string $repository |
||
144 | * @return Project |
||
145 | */ |
||
146 | public function setRepository($repository) |
||
152 | |||
153 | /** |
||
154 | * Get repository |
||
155 | * |
||
156 | * @return string |
||
157 | */ |
||
158 | public function getRepository() |
||
162 | |||
163 | /** |
||
164 | * Set slug |
||
165 | * |
||
166 | * @param string $slug |
||
167 | * @return Project |
||
168 | */ |
||
169 | public function setSlug($slug) |
||
175 | |||
176 | /** |
||
177 | * Get slug |
||
178 | * |
||
179 | * @return string |
||
180 | */ |
||
181 | public function getSlug() |
||
185 | |||
186 | public function getCreated() |
||
190 | |||
191 | public function getUpdated() |
||
195 | } |
||
196 |