]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Entity/Entries.php
change delete status for GET /api/entries method
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Entity / Entries.php
index 3c061a37bc5f1dad223b6344d484f92462521bb2..32e928d2325f64f2ababca7f178c3db6e1c9e1aa 100644 (file)
@@ -66,12 +66,17 @@ class Entries
      */
     private $userId;
 
-
+    /**
+     * @var string
+     *
+     * @ORM\Column(name="is_deleted", type="decimal", precision=10, scale=0, nullable=true)
+     */
+    private $isDeleted = '0';
 
     /**
      * Get id
      *
-     * @return integer 
+     * @return integer
      */
     public function getId()
     {
@@ -81,7 +86,7 @@ class Entries
     /**
      * Set title
      *
-     * @param string $title
+     * @param  string  $title
      * @return Entries
      */
     public function setTitle($title)
@@ -94,7 +99,7 @@ class Entries
     /**
      * Get title
      *
-     * @return string 
+     * @return string
      */
     public function getTitle()
     {
@@ -104,7 +109,7 @@ class Entries
     /**
      * Set url
      *
-     * @param string $url
+     * @param  string  $url
      * @return Entries
      */
     public function setUrl($url)
@@ -117,7 +122,7 @@ class Entries
     /**
      * Get url
      *
-     * @return string 
+     * @return string
      */
     public function getUrl()
     {
@@ -127,7 +132,7 @@ class Entries
     /**
      * Set isRead
      *
-     * @param string $isRead
+     * @param  string  $isRead
      * @return Entries
      */
     public function setIsRead($isRead)
@@ -140,7 +145,7 @@ class Entries
     /**
      * Get isRead
      *
-     * @return string 
+     * @return string
      */
     public function getIsRead()
     {
@@ -150,13 +155,14 @@ class Entries
     public function toggleArchive()
     {
         $this->isRead = $this->getIsRead() ^ 1;
+
         return $this;
     }
 
     /**
      * Set isFav
      *
-     * @param string $isFav
+     * @param  string  $isFav
      * @return Entries
      */
     public function setIsFav($isFav)
@@ -169,7 +175,7 @@ class Entries
     /**
      * Get isFav
      *
-     * @return string 
+     * @return string
      */
     public function getIsFav()
     {
@@ -186,7 +192,7 @@ class Entries
     /**
      * Set content
      *
-     * @param string $content
+     * @param  string  $content
      * @return Entries
      */
     public function setContent($content)
@@ -199,7 +205,7 @@ class Entries
     /**
      * Get content
      *
-     * @return string 
+     * @return string
      */
     public function getContent()
     {
@@ -209,7 +215,7 @@ class Entries
     /**
      * Set userId
      *
-     * @param string $userId
+     * @param  string  $userId
      * @return Entries
      */
     public function setUserId($userId)
@@ -222,10 +228,26 @@ class Entries
     /**
      * Get userId
      *
-     * @return string 
+     * @return string
      */
     public function getUserId()
     {
         return $this->userId;
     }
+
+    /**
+     * @return string
+     */
+    public function isDeleted()
+    {
+        return $this->isDeleted;
+    }
+
+    /**
+     * @param string $isDeleted
+     */
+    public function setDeleted($isDeleted)
+    {
+        $this->isDeleted = $isDeleted;
+    }
 }