1 | <?php |
||
18 | class Block |
||
19 | { |
||
20 | /** |
||
21 | * @var int |
||
22 | * |
||
23 | * @ORM\Column(name="block_id", type="integer") |
||
24 | * @ORM\Id |
||
25 | * @ORM\GeneratedValue(strategy="AUTO") |
||
26 | */ |
||
27 | protected $id; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | * |
||
32 | * @ORM\Column(name="locale", type="string", length=10, nullable=true) |
||
33 | */ |
||
34 | protected $locale; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | * |
||
39 | * @ORM\Column(name="slug", type="string", length=255, nullable=false) |
||
40 | */ |
||
41 | protected $slug; |
||
42 | |||
43 | /** |
||
44 | * @var string |
||
45 | * |
||
46 | * @ORM\Column(name="name", type="string", length=255, nullable=false) |
||
47 | */ |
||
48 | protected $name; |
||
49 | |||
50 | /** |
||
51 | * @var string |
||
52 | * |
||
53 | * @ORM\Column(name="content", type="text", nullable=true) |
||
54 | */ |
||
55 | protected $content; |
||
56 | |||
57 | /** |
||
58 | * @var \DateTime |
||
59 | * |
||
60 | * @Gedmo\Timestampable(on="create") |
||
61 | * @ORM\Column(name="date_created", type="datetime", nullable=false) |
||
62 | */ |
||
63 | protected $dateCreated; |
||
64 | |||
65 | /** |
||
66 | * @var \DateTime |
||
67 | * |
||
68 | * @Gedmo\Timestampable(on="update") |
||
69 | * @ORM\Column(name="date_updated", type="datetime", nullable=false) |
||
70 | */ |
||
71 | protected $dateUpdated; |
||
72 | |||
73 | public function __construct() |
||
76 | |||
77 | public function __set($name, $value) |
||
81 | |||
82 | public function __toString() |
||
86 | |||
87 | /** |
||
88 | * Gets the value of id. |
||
89 | * |
||
90 | * @return int |
||
91 | */ |
||
92 | public function getId() |
||
96 | |||
97 | /** |
||
98 | * Sets the value of id. |
||
99 | * |
||
100 | * @param int $id the id |
||
101 | * |
||
102 | * @return self |
||
103 | */ |
||
104 | public function setId($id) |
||
110 | |||
111 | /** |
||
112 | * Gets the value of content. |
||
113 | * |
||
114 | * @return string |
||
115 | */ |
||
116 | public function getContent() |
||
120 | |||
121 | /** |
||
122 | * Sets the value of content. |
||
123 | * |
||
124 | * @param string $content the content |
||
125 | * |
||
126 | * @return self |
||
127 | */ |
||
128 | public function setContent($content) |
||
134 | |||
135 | /** |
||
136 | * Gets the value of dateCreated. |
||
137 | * |
||
138 | * @return \DateTime |
||
139 | */ |
||
140 | public function getDateCreated() |
||
144 | |||
145 | /** |
||
146 | * Sets the value of dateCreated. |
||
147 | * |
||
148 | * @param \DateTime $dateCreated the date created |
||
149 | * |
||
150 | * @return self |
||
151 | */ |
||
152 | public function setDateCreated(\DateTime $dateCreated) |
||
158 | |||
159 | /** |
||
160 | * Gets the value of dateUpdated. |
||
161 | * |
||
162 | * @return \DateTime |
||
163 | */ |
||
164 | public function getDateUpdated() |
||
168 | |||
169 | /** |
||
170 | * Sets the value of dateUpdated. |
||
171 | * |
||
172 | * @param \DateTime $dateUpdated the date updated |
||
173 | * |
||
174 | * @return self |
||
175 | */ |
||
176 | public function setDateUpdated(\DateTime $dateUpdated) |
||
182 | |||
183 | /** |
||
184 | * Gets the value of name. |
||
185 | * |
||
186 | * @return string |
||
187 | */ |
||
188 | public function getName() |
||
192 | |||
193 | /** |
||
194 | * Sets the value of name. |
||
195 | * |
||
196 | * @param string $name the name |
||
197 | * |
||
198 | * @return self |
||
199 | */ |
||
200 | public function setName($name) |
||
206 | |||
207 | /** |
||
208 | * Gets the value of slug. |
||
209 | * |
||
210 | * @return string |
||
211 | */ |
||
212 | public function getSlug() |
||
216 | |||
217 | /** |
||
218 | * Sets the value of slug. |
||
219 | * |
||
220 | * @param string $slug the slug |
||
221 | * |
||
222 | * @return self |
||
223 | */ |
||
224 | public function setSlug($slug) |
||
230 | |||
231 | /** |
||
232 | * @return string |
||
233 | */ |
||
234 | public function getLocale() |
||
238 | |||
239 | /** |
||
240 | * @param string $locale |
||
241 | */ |
||
242 | public function setLocale($locale) |
||
246 | } |
||
247 |