diff options
author | Thomas Citharel <tcit@tcit.fr> | 2017-05-31 09:31:18 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-06-23 10:08:54 +0200 |
commit | bf6c0346d8d35a719dd1bff1cb4d573d422f99ff (patch) | |
tree | 04fb80e20ad1cffacb72357a632a9afe2ec058cb /src/Wallabag/CoreBundle/Entity/Entry.php | |
parent | d6d3f4ec3698effd1d4b063e295341791bdcf7d7 (diff) | |
download | wallabag-bf6c0346d8d35a719dd1bff1cb4d573d422f99ff.tar.gz wallabag-bf6c0346d8d35a719dd1bff1cb4d573d422f99ff.tar.zst wallabag-bf6c0346d8d35a719dd1bff1cb4d573d422f99ff.zip |
WIPfederation
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Entry.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/Entry.php | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php index a0503c39..6ca17126 100644 --- a/src/Wallabag/CoreBundle/Entity/Entry.php +++ b/src/Wallabag/CoreBundle/Entity/Entry.php | |||
@@ -233,13 +233,21 @@ class Entry | |||
233 | */ | 233 | */ |
234 | private $tags; | 234 | private $tags; |
235 | 235 | ||
236 | /* | 236 | /** |
237 | * @var boolean | ||
238 | * | ||
239 | * @ORM\Column(name="recommended", type="boolean", nullable=true) | ||
240 | */ | ||
241 | private $recommended; | ||
242 | |||
243 | /** | ||
237 | * @param User $user | 244 | * @param User $user |
238 | */ | 245 | */ |
239 | public function __construct(User $user) | 246 | public function __construct(User $user) |
240 | { | 247 | { |
241 | $this->user = $user; | 248 | $this->user = $user; |
242 | $this->tags = new ArrayCollection(); | 249 | $this->tags = new ArrayCollection(); |
250 | $this->changes = new ArrayCollection(); | ||
243 | } | 251 | } |
244 | 252 | ||
245 | /** | 253 | /** |
@@ -778,4 +786,20 @@ class Entry | |||
778 | 786 | ||
779 | return $this; | 787 | return $this; |
780 | } | 788 | } |
789 | |||
790 | /** | ||
791 | * @return bool | ||
792 | */ | ||
793 | public function isRecommended() | ||
794 | { | ||
795 | return $this->recommended; | ||
796 | } | ||
797 | |||
798 | /** | ||
799 | * @param bool $recommended | ||
800 | */ | ||
801 | public function setRecommended($recommended) | ||
802 | { | ||
803 | $this->recommended = $recommended; | ||
804 | } | ||
781 | } | 805 | } |