+ * @param Location $location
+ *
+ * @return User
+ */
+ public function addLocation(Location $location): User {
+ $this->locations[] = $location;
+
+ return $this;
+ }
+
+ /**
+ * Remove location
+ *
+ * @param Location $location
+ */
+ public function removeLocation(Location $location): bool {
+ return $this->locations->removeElement($location);
+ }
+
+ /**
+ * Get locations
+ *
+ * @return \Doctrine\Common\Collections\Collection
+ */
+ public function getLocations(): Collection {
+ return $this->locations;
+ }
+
+ /**
+ * Add snippet
+ *
+ * @param Snippet $snippet
+ *
+ * @return User
+ */
+ public function addSnippet(Snippet $snippet): User {
+ $this->snippets[] = $snippet;
+
+ return $this;
+ }
+
+ /**
+ * Remove snippet
+ *
+ * @param Snippet $snippet
+ */
+ public function removeSnippet(Snippet $snippet): bool {
+ return $this->snippets->removeElement($snippet);
+ }
+
+ /**
+ * Get snippets
+ *
+ * @return \Doctrine\Common\Collections\Collection
+ */
+ public function getSnippets(): Collection {
+ return $this->snippets;
+ }
+
+ /**
+ * Add subscriber
+ *
+ * @param User $subscriber
+ *
+ * @return User
+ */
+ public function addSubscriber(User $subscriber): User {
+ $this->subscribers[] = $subscriber;
+
+ return $this;
+ }
+
+ /**
+ * Remove subscriber
+ *
+ * @param User $subscriber
+ */
+ public function removeSubscriber(User $subscriber): bool {
+ return $this->subscribers->removeElement($subscriber);
+ }
+
+ /**
+ * Get subscribers
+ *
+ * @return \Doctrine\Common\Collections\Collection
+ */
+ public function getSubscribers(): Collection {
+ return $this->subscribers;
+ }
+
+ /**
+ * Add subscription
+ *
+ * @param User $subscription
+ *
+ * @return User
+ */
+ public function addSubscription(User $subscription): User {
+ //Add from owning side
+ $subscription->addSubscriber($this);
+
+ $this->subscriptions[] = $subscription;
+
+ return $this;
+ }
+
+ /**
+ * Remove subscription
+ *
+ * @param User $subscription
+ */
+ public function removeSubscription(User $subscription): bool {
+ if (!$this->users->contains($user)) {
+ return true;
+ }
+
+ //Remove from owning side
+ $subscription->removeSubscriber($this);
+
+ return $this->subscriptions->removeElement($subscription);
+ }
+
+ /**
+ * Get subscriptions
+ *
+ * @return \Doctrine\Common\Collections\Collection
+ */
+ public function getSubscriptions(): Collection {
+ return $this->subscriptions;
+ }
+
+ /**
+ * Add google token
+ *
+ * @param GoogleToken $googleToken
+ *
+ * @return User
+ */
+ public function addGoogleToken(GoogleToken $googleToken): User {
+ $this->googleTokens[] = $googleToken;
+
+ return $this;
+ }
+
+ /**
+ * Remove google token
+ *
+ * @param GoogleToken $googleToken
+ */
+ public function removeGoogleToken(GoogleToken $googleToken): bool {
+ return $this->googleTokens->removeElement($googleToken);
+ }
+
+ /**
+ * Get googleTokens
+ *
+ * @return \Doctrine\Common\Collections\Collection