X-Git-Url: https://git.rapsys.eu/treebundle/blobdiff_plain/c14da51956d2ead5e780f404a2144bc99ed28e49..863d7cd4e4fa5ff8935b8575f219be5cfabc0e98:/Entity/Album.php?ds=sidebyside diff --git a/Entity/Album.php b/Entity/Album.php index 9177b10..0a812f8 100644 --- a/Entity/Album.php +++ b/Entity/Album.php @@ -37,7 +37,7 @@ class Album { /** * @var \Doctrine\Common\Collections\Collection */ - private Collection $assets; + private Collection $elements; /** * Constructor @@ -51,7 +51,7 @@ class Album { $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 */ - public function addAsset(Asset $asset): User { - $this->assets[] = $asset; + public function addElement(Element $element): User { + $this->elements[] = $element; return $this; } /** - * Remove asset + * Remove element * - * @param Asset $asset + * @param Element $element * * @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 */ - public function getAssets(): Collection { - return $this->assets; + public function getElements(): Collection { + return $this->elements; } /**