diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-11-24 11:44:21 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-06-23 09:33:54 +0200 |
commit | 46a54f5debe317ccb3a473ec4b54d3755fe6606c (patch) | |
tree | 17876e70811c91d1ab45df7827addd6c6fc3c014 /src/Wallabag/CoreBundle/Entity | |
parent | 29714661b1df78871ceaf0e079f11041a8641d4b (diff) | |
download | wallabag-46a54f5debe317ccb3a473ec4b54d3755fe6606c.tar.gz wallabag-46a54f5debe317ccb3a473ec4b54d3755fe6606c.tar.zst wallabag-46a54f5debe317ccb3a473ec4b54d3755fe6606c.zip |
WIP
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/Entry.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php index a0503c39..639af6aa 100644 --- a/src/Wallabag/CoreBundle/Entity/Entry.php +++ b/src/Wallabag/CoreBundle/Entity/Entry.php | |||
@@ -211,6 +211,15 @@ class Entry | |||
211 | private $headers; | 211 | private $headers; |
212 | 212 | ||
213 | /** | 213 | /** |
214 | * @var int | ||
215 | * | ||
216 | * @ORM\Column(name="progress", type="integer", nullable=true) | ||
217 | * | ||
218 | * @Groups({"entries_for_user", "export_all"}) | ||
219 | */ | ||
220 | private $progress = 0; | ||
221 | |||
222 | /** | ||
214 | * @Exclude | 223 | * @Exclude |
215 | * | 224 | * |
216 | * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User", inversedBy="entries") | 225 | * @ORM\ManyToOne(targetEntity="Wallabag\UserBundle\Entity\User", inversedBy="entries") |
@@ -760,6 +769,20 @@ class Entry | |||
760 | } | 769 | } |
761 | 770 | ||
762 | /** | 771 | /** |
772 | * Set progress. | ||
773 | * | ||
774 | * @param int $progress | ||
775 | * | ||
776 | * @return Entry | ||
777 | */ | ||
778 | public function setProgress($progress) | ||
779 | { | ||
780 | $this->progress = $progress; | ||
781 | |||
782 | return $this; | ||
783 | } | ||
784 | |||
785 | /** | ||
763 | * @return array | 786 | * @return array |
764 | */ | 787 | */ |
765 | public function getHeaders() | 788 | public function getHeaders() |
@@ -778,4 +801,14 @@ class Entry | |||
778 | 801 | ||
779 | return $this; | 802 | return $this; |
780 | } | 803 | } |
804 | |||
805 | /** | ||
806 | * Get progress. | ||
807 | * | ||
808 | * @return int | ||
809 | */ | ||
810 | public function getProgress() | ||
811 | { | ||
812 | return $this->progress; | ||
813 | } | ||
781 | } | 814 | } |