]> Raphaƫl G. Git Repositories - treebundle/blobdiff - Entity/User.php
Version 0.0.7
[treebundle] / Entity / User.php
index b0a143e8a92a6d66c6197749d85fc193797d054f..cabdde55320c292c5e5e5208b7009133891110a2 100644 (file)
@@ -23,7 +23,7 @@ class User extends BaseUser {
        /**
         * @var \Doctrine\Common\Collections\Collection
         */
        /**
         * @var \Doctrine\Common\Collections\Collection
         */
-       private Collection $resources;
+       private Collection $assets;
 
        /**
         * Constructor
 
        /**
         * Constructor
@@ -45,39 +45,39 @@ class User extends BaseUser {
                //Set defaults
 
                //Set collections
                //Set defaults
 
                //Set collections
-               $this->resources = new ArrayCollection();
+               $this->assets = new ArrayCollection();
        }
 
        /**
        }
 
        /**
-        * Add resource
+        * Add asset
         *
         *
-        * @param Resource $resource
+        * @param Asset $asset
         *
         * @return User
         */
         *
         * @return User
         */
-       public function addResource(Resource $resource): User {
-               $this->resources[] = $resource;
+       public function addAsset(Asset $asset): User {
+               $this->assets[] = $asset;
 
                return $this;
        }
 
        /**
 
                return $this;
        }
 
        /**
-        * Remove resource
+        * Remove asset
         *
         *
-        * @param Resource $resource
+        * @param Asset $asset
         *
         * @return \Doctrine\Common\Collections\Collection
         */
         *
         * @return \Doctrine\Common\Collections\Collection
         */
-       public function removeResource(Resource $resource): Collection {
-               return $this->resources->removeElement($resource);
+       public function removeAsset(Asset $asset): Collection {
+               return $this->assets->removeElement($asset);
        }
 
        /**
        }
 
        /**
-        * Get resources
+        * Get assets
         *
         * @return \Doctrine\Common\Collections\Collection
         */
         *
         * @return \Doctrine\Common\Collections\Collection
         */
-       public function getResources(): Collection {
-               return $this->resources;
+       public function getAssets(): Collection {
+               return $this->assets;
        }
 }
        }
 }