]> Raphaƫl G. Git Repositories - treebundle/blobdiff - Entity/Album.php
Add album and element templates
[treebundle] / Entity / Album.php
index 9177b1022d3b600054b14e40ab7659a6611acec3..0a812f88e799bd7f3c80ea4a799daf1bb58238cd 100644 (file)
@@ -37,7 +37,7 @@ class Album {
        /**
         * @var \Doctrine\Common\Collections\Collection
         */
        /**
         * @var \Doctrine\Common\Collections\Collection
         */
-       private Collection $assets;
+       private Collection $elements;
 
        /**
         * Constructor
 
        /**
         * Constructor
@@ -51,7 +51,7 @@ class Album {
                $this->updated = new \DateTime('now');
 
                //Set collections
                $this->updated = new \DateTime('now');
 
                //Set collections
-               $this->assets = new ArrayCollection();
+               $this->elements = new ArrayCollection();
        }
 
        /**
        }
 
        /**
@@ -152,36 +152,36 @@ class Album {
        }
 
        /**
        }
 
        /**
-        * Add asset
+        * Add element
         *
         *
-        * @param Asset $asset
+        * @param Element $element
         *
         * @return User
         */
         *
         * @return User
         */
-       public function addAsset(Asset $asset): User {
-               $this->assets[] = $asset;
+       public function addElement(Element $element): User {
+               $this->elements[] = $element;
 
                return $this;
        }
 
        /**
 
                return $this;
        }
 
        /**
-        * Remove asset
+        * Remove element
         *
         *
-        * @param Asset $asset
+        * @param Element $element
         *
         * @return \Doctrine\Common\Collections\Collection
         */
         *
         * @return \Doctrine\Common\Collections\Collection
         */
-       public function removeAsset(Asset $asset): Collection {
-               return $this->assets->removeElement($asset);
+       public function removeElement(Element $element): Collection {
+               return $this->elements->removeElement($element);
        }
 
        /**
        }
 
        /**
-        * Get assets
+        * Get elements
         *
         * @return \Doctrine\Common\Collections\Collection
         */
         *
         * @return \Doctrine\Common\Collections\Collection
         */
-       public function getAssets(): Collection {
-               return $this->assets;
+       public function getElements(): Collection {
+               return $this->elements;
        }
 
        /**
        }
 
        /**