aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity/Entry.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-11-18 15:09:21 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-11-18 15:09:21 +0100
commit10b3509757c704943aa9cdd69c1d02bedfa937a3 (patch)
tree2fee613487ecea37a2b938611dd3711248774818 /src/Wallabag/CoreBundle/Entity/Entry.php
parentb060fbdfe763bf4fa2b17d43bccc6751cefd0d2c (diff)
downloadwallabag-10b3509757c704943aa9cdd69c1d02bedfa937a3.tar.gz
wallabag-10b3509757c704943aa9cdd69c1d02bedfa937a3.tar.zst
wallabag-10b3509757c704943aa9cdd69c1d02bedfa937a3.zip
Added http_status in Entry entity
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Entry.php')
-rw-r--r--src/Wallabag/CoreBundle/Entity/Entry.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php
index f59c445f..31e594bf 100644
--- a/src/Wallabag/CoreBundle/Entity/Entry.php
+++ b/src/Wallabag/CoreBundle/Entity/Entry.php
@@ -181,6 +181,15 @@ class Entry
181 private $isPublic; 181 private $isPublic;
182 182
183 /** 183 /**
184 * @var int
185 *
186 * @ORM\Column(name="http_status", type="integer", nullable=true)
187 *
188 * @Groups({"entries_for_user", "export_all"})
189 */
190 private $httpStatus;
191
192 /**
184 * @Exclude 193 * @Exclude
185 * 194 *
186 * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User", inversedBy="entries") 195 * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User", inversedBy="entries")
@@ -669,4 +678,24 @@ class Entry
669 { 678 {
670 $this->uuid = null; 679 $this->uuid = null;
671 } 680 }
681
682 /**
683 * @return int
684 */
685 public function getHttpStatus()
686 {
687 return $this->httpStatus;
688 }
689
690 /**
691 * @param int $httpStatus
692 *
693 * @return Entry
694 */
695 public function setHttpStatus($httpStatus)
696 {
697 $this->httpStatus = $httpStatus;
698
699 return $this;
700 }
672} 701}