From bf6c0346d8d35a719dd1bff1cb4d573d422f99ff Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 31 May 2017 09:31:18 +0200 Subject: WIP Signed-off-by: Thomas Citharel --- src/Wallabag/FederationBundle/Entity/Account.php | 307 +++++++++++++++++++++++ 1 file changed, 307 insertions(+) create mode 100644 src/Wallabag/FederationBundle/Entity/Account.php (limited to 'src/Wallabag/FederationBundle/Entity/Account.php') diff --git a/src/Wallabag/FederationBundle/Entity/Account.php b/src/Wallabag/FederationBundle/Entity/Account.php new file mode 100644 index 00000000..c44050d9 --- /dev/null +++ b/src/Wallabag/FederationBundle/Entity/Account.php @@ -0,0 +1,307 @@ +followers = new ArrayCollection(); + $this->following = new ArrayCollection(); + $this->liked = new ArrayCollection(); + } + + /** + * @return int + */ + public function getId() + { + return $this->id; + } + + /** + * @return string + */ + public function getUsername() + { + return $this->username; + } + + /** + * @param string $username + * @return Account + */ + public function setUsername($username) + { + $this->username = $username; + return $this; + } + + /** + * @return string + */ + public function getServer() + { + return $this->server; + } + + /** + * @param string $server + * @return Account + */ + public function setServer($server) + { + $this->server = $server; + return $this; + } + + /** + * @return User + */ + public function getUser() + { + return $this->user; + } + + /** + * @param User $user + * @return Account + */ + public function setUser(User $user) + { + $this->user = $user; + return $this; + } + + /** + * @return Collection + */ + public function getFollowers() + { + return $this->followers; + } + + /** + * @param Collection $followers + * @return Account + */ + public function setFollowers($followers) + { + $this->followers = $followers; + return $this; + } + + /** + * @param Account $account + * @return Account + */ + public function addFollower(Account $account) + { + $this->followers->add($account); + return $this; + } + + /** + * @return Collection + */ + public function getFollowing() + { + return $this->following; + } + + /** + * @param Collection $following + * @return Account + */ + public function setFollowing(Collection $following) + { + $this->following = $following; + return $this; + } + + /** + * @param Account $account + * @return Account + */ + public function addFollowing(Account $account) + { + $this->following->add($account); + return $this; + } + + /** + * @return Collection + */ + public function getLiked() + { + return $this->liked; + } + + /** + * @param Collection $liked + * @return Account + */ + public function setLiked(Collection $liked) + { + $this->liked = $liked; + return $this; + } + + /** + * @param Entry $entry + * @return Account + */ + public function addLiked(Entry $entry) + { + $this->liked->add($entry); + return $this; + } + + /** + * @return string + */ + public function getAvatar() + { + return $this->avatar; + } + + /** + * @param string $avatar + * @return Account + */ + public function setAvatar($avatar) + { + $this->avatar = $avatar; + return $this; + } + + /** + * @return string + */ + public function getBanner() + { + return $this->banner; + } + + /** + * @param string $banner + * @return Account + */ + public function setBanner($banner) + { + $this->banner = $banner; + return $this; + } + + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * @param string $description + * @return Account + */ + public function setDescription($description) + { + $this->description = $description; + return $this; + } + +} -- cgit v1.2.3