aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity')
-rw-r--r--src/Wallabag/CoreBundle/Entity/Entries.php40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Entries.php b/src/Wallabag/CoreBundle/Entity/Entries.php
index ab5b859b..f06a2940 100644
--- a/src/Wallabag/CoreBundle/Entity/Entries.php
+++ b/src/Wallabag/CoreBundle/Entity/Entries.php
@@ -42,16 +42,16 @@ class Entries
42 /** 42 /**
43 * @var boolean 43 * @var boolean
44 * 44 *
45 * @ORM\Column(name="is_read", type="boolean", nullable=true, options={"default" = false}) 45 * @ORM\Column(name="is_archived", type="boolean", nullable=true, options={"default" = false})
46 */ 46 */
47 private $isRead = false; 47 private $isArchived = false;
48 48
49 /** 49 /**
50 * @var boolean 50 * @var boolean
51 * 51 *
52 * @ORM\Column(name="is_fav", type="boolean", nullable=true, options={"default" = false}) 52 * @ORM\Column(name="is_starred", type="boolean", nullable=true, options={"default" = false})
53 */ 53 */
54 private $isFav = false; 54 private $isStarred = false;
55 55
56 /** 56 /**
57 * @var boolean 57 * @var boolean
@@ -180,61 +180,61 @@ class Entries
180 } 180 }
181 181
182 /** 182 /**
183 * Set isRead 183 * Set isArchived
184 * 184 *
185 * @param string $isRead 185 * @param string $isArchived
186 * @return Entries 186 * @return Entries
187 */ 187 */
188 public function setRead($isRead) 188 public function setArchived($isArchived)
189 { 189 {
190 $this->isRead = $isRead; 190 $this->isArchived = $isArchived;
191 191
192 return $this; 192 return $this;
193 } 193 }
194 194
195 /** 195 /**
196 * Get isRead 196 * Get isArchived
197 * 197 *
198 * @return string 198 * @return string
199 */ 199 */
200 public function isRead() 200 public function isArchived()
201 { 201 {
202 return $this->isRead; 202 return $this->isArchived;
203 } 203 }
204 204
205 public function toggleArchive() 205 public function toggleArchive()
206 { 206 {
207 $this->isRead = $this->getIsRead() ^ 1; 207 $this->isArchived = $this->isArchived() ^ 1;
208 208
209 return $this; 209 return $this;
210 } 210 }
211 211
212 /** 212 /**
213 * Set isFav 213 * Set isStarred
214 * 214 *
215 * @param string $isFav 215 * @param string $isStarred
216 * @return Entries 216 * @return Entries
217 */ 217 */
218 public function setFav($isFav) 218 public function setStarred($isStarred)
219 { 219 {
220 $this->isFav = $isFav; 220 $this->isStarred = $isStarred;
221 221
222 return $this; 222 return $this;
223 } 223 }
224 224
225 /** 225 /**
226 * Get isFav 226 * Get isStarred
227 * 227 *
228 * @return string 228 * @return string
229 */ 229 */
230 public function isFav() 230 public function isStarred()
231 { 231 {
232 return $this->isFav; 232 return $this->isStarred;
233 } 233 }
234 234
235 public function toggleStar() 235 public function toggleStar()
236 { 236 {
237 $this->isFav = $this->getIsFav() ^ 1; 237 $this->isStarred = $this->isStarred() ^ 1;
238 238
239 return $this; 239 return $this;
240 } 240 }