/**
* @var \Doctrine\Common\Collections\Collection
*/
- private Collection $assets;
+ private Collection $elements;
/**
* Constructor
//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;
}
}