]> Raphaƫl G. Git Repositories - treebundle/blobdiff - Entity/User.php
Move leading slash from path argument to route path
[treebundle] / Entity / User.php
index b0a143e8a92a6d66c6197749d85fc193797d054f..4c4ea57833c00edffe196e00116f0e332f0c869b 100644 (file)
@@ -23,7 +23,7 @@ class User extends BaseUser {
        /**
         * @var \Doctrine\Common\Collections\Collection
         */
-       private Collection $resources;
+       private Collection $elements;
 
        /**
         * Constructor
@@ -45,39 +45,39 @@ class User extends BaseUser {
                //Set defaults
 
                //Set collections
-               $this->resources = new ArrayCollection();
+               $this->elements = new ArrayCollection();
        }
 
        /**
-        * Add resource
+        * Add element
         *
-        * @param Resource $resource
+        * @param Element $element
         *
         * @return User
         */
-       public function addResource(Resource $resource): User {
-               $this->resources[] = $resource;
+       public function addElement(Element $element): User {
+               $this->elements[] = $element;
 
                return $this;
        }
 
        /**
-        * Remove resource
+        * Remove element
         *
-        * @param Resource $resource
+        * @param Element $element
         *
         * @return \Doctrine\Common\Collections\Collection
         */
-       public function removeResource(Resource $resource): Collection {
-               return $this->resources->removeElement($resource);
+       public function removeElement(Element $element): Collection {
+               return $this->elements->removeElement($element);
        }
 
        /**
-        * Get resources
+        * Get elements
         *
         * @return \Doctrine\Common\Collections\Collection
         */
-       public function getResources(): Collection {
-               return $this->resources;
+       public function getElements(): Collection {
+               return $this->elements;
        }
 }