X-Git-Url: https://git.rapsys.eu/treebundle/blobdiff_plain/e2432989d03536f53ea8d9b6bf1cfc91c1b6077f..d1f5c6c9ff6d8e7435f0bfba5983b327c89266d4:/Entity/User.php?ds=inline diff --git a/Entity/User.php b/Entity/User.php index cabdde5..4c4ea57 100644 --- a/Entity/User.php +++ b/Entity/User.php @@ -23,7 +23,7 @@ class User extends BaseUser { /** * @var \Doctrine\Common\Collections\Collection */ - private Collection $assets; + private Collection $elements; /** * Constructor @@ -45,39 +45,39 @@ class User extends BaseUser { //Set defaults //Set collections - $this->assets = new ArrayCollection(); + $this->elements = new ArrayCollection(); } /** - * 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; } }