]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Entity/Entry.php
WIP
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Entity / Entry.php
index a0503c3918170dfbb9fc8bb29a0e8a4f22f72f4c..639af6aa96f5d3ad458dbd1c146e1f08e0a180cd 100644 (file)
@@ -210,6 +210,15 @@ class Entry
      */
     private $headers;
 
+    /**
+     * @var int
+     *
+     * @ORM\Column(name="progress", type="integer", nullable=true)
+     *
+     * @Groups({"entries_for_user", "export_all"})
+     */
+    private $progress = 0;
+
     /**
      * @Exclude
      *
@@ -759,6 +768,20 @@ class Entry
         return $this;
     }
 
+    /**
+     * Set progress.
+     *
+     * @param int $progress
+     *
+     * @return Entry
+     */
+    public function setProgress($progress)
+    {
+        $this->progress = $progress;
+
+        return $this;
+    }
+
     /**
      * @return array
      */
@@ -778,4 +801,14 @@ class Entry
 
         return $this;
     }
+
+    /**
+     * Get progress.
+     *
+     * @return int
+     */
+    public function getProgress()
+    {
+        return $this->progress;
+    }
 }