]> Raphaël G. Git Repositories - airbundle/commitdiff
Reorder
authorRaphaël Gertz <git@rapsys.eu>
Sun, 29 Aug 2021 04:43:25 +0000 (06:43 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Sun, 29 Aug 2021 04:43:25 +0000 (06:43 +0200)
Entity/User.php

index 1fb9f1ae33588692a5345a441d3b1b22d5bf69d3..189e0ea98795c062d82b41a0874b5a12f344d6b7 100644 (file)
@@ -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
         *