X-Git-Url: https://git.rapsys.eu/treebundle/blobdiff_plain/be52ee36181a7928e7fa699b64ae30872e96c009..863d7cd4e4fa5ff8935b8575f219be5cfabc0e98:/Entity/User.php?ds=sidebyside 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; } }