From 7f699602655aaa9d90bbf5a76cf33f84837d444b Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 15 May 2017 11:12:33 +0200 Subject: start work on user-shares Signed-off-by: Thomas Citharel --- src/Wallabag/CoreBundle/Entity/Share.php | 139 +++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 src/Wallabag/CoreBundle/Entity/Share.php (limited to 'src/Wallabag/CoreBundle/Entity/Share.php') diff --git a/src/Wallabag/CoreBundle/Entity/Share.php b/src/Wallabag/CoreBundle/Entity/Share.php new file mode 100644 index 00000000..d1db5eb0 --- /dev/null +++ b/src/Wallabag/CoreBundle/Entity/Share.php @@ -0,0 +1,139 @@ +accepted = false; + } + + /** + * @return int + */ + public function getId() + { + return $this->id; + } + + /** + * @return User + */ + public function getUserOrigin() + { + return $this->userOrigin; + } + + /** + * @param User $userOrigin + * @return Share + */ + public function setUserOrigin(User $userOrigin) + { + $this->userOrigin = $userOrigin; + return $this; + } + + /** + * @return User + */ + public function getUserDestination() + { + return $this->userDestination; + } + + /** + * @param User $userDestination + * @return Share + */ + public function setUserDestination(User $userDestination) + { + $this->userDestination = $userDestination; + return $this; + } + + /** + * @return bool + */ + public function isAccepted() + { + return $this->accepted; + } + + /** + * @param bool $accepted + * @return Share + */ + public function setAccepted($accepted) + { + $this->accepted = $accepted; + return $this; + } + + /** + * @return Entry + */ + public function getEntry() + { + return $this->entry; + } + + /** + * @param Entry $entry + * @return Share + */ + public function setEntry(Entry $entry) + { + $this->entry = $entry; + return $this; + } +} -- cgit v1.2.3