aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity/Entry.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Entry.php')
-rw-r--r--src/Wallabag/CoreBundle/Entity/Entry.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php
index 2b1f2e05..58ec51db 100644
--- a/src/Wallabag/CoreBundle/Entity/Entry.php
+++ b/src/Wallabag/CoreBundle/Entity/Entry.php
@@ -68,6 +68,15 @@ class Entry
68 /** 68 /**
69 * @var string 69 * @var string
70 * 70 *
71 * @ORM\Column(name="given_url", type="text", nullable=true)
72 *
73 * @Groups({"entries_for_user", "export_all"})
74 */
75 private $givenUrl;
76
77 /**
78 * @var string
79 *
71 * @Assert\NotBlank() 80 * @Assert\NotBlank()
72 * @ORM\Column(name="url", type="text", nullable=true) 81 * @ORM\Column(name="url", type="text", nullable=true)
73 * 82 *
@@ -298,6 +307,30 @@ class Entry
298 } 307 }
299 308
300 /** 309 /**
310 * Set given url.
311 *
312 * @param string $givenUrl
313 *
314 * @return Entry
315 */
316 public function setGivenUrl($givenUrl)
317 {
318 $this->givenUrl = $givenUrl;
319
320 return $this;
321 }
322
323 /**
324 * Get given Url.
325 *
326 * @return string
327 */
328 public function getGivenUrl()
329 {
330 return $this->givenUrl;
331 }
332
333 /**
301 * Set url. 334 * Set url.
302 * 335 *
303 * @param string $url 336 * @param string $url