X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/1b020b02e1d1fa56e737c8c5dbf5d7e5f48d587e..4315e1997c02dbf7a08be4ee55ea854046c5b92d:/Entity/User.php?ds=inline diff --git a/Entity/User.php b/Entity/User.php index 1fb9f1a..189e0ea 100644 --- a/Entity/User.php +++ b/Entity/User.php @@ -185,37 +185,6 @@ class User extends BaseUser { return $this->applications; } - /** - * 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 ArrayCollection - */ - public function getSnippets(): ArrayCollection { - return $this->snippets; - } - /** * Add dance * @@ -280,6 +249,37 @@ class User extends BaseUser { 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 ArrayCollection + */ + public function getSnippets(): ArrayCollection { + return $this->snippets; + } + /** * Add subscriber *