From be52ee36181a7928e7fa699b64ae30872e96c009 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sun, 3 Nov 2024 05:36:18 +0100 Subject: [PATCH 1/1] Rename resource to asset --- Entity/User.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Entity/User.php b/Entity/User.php index b0a143e..cabdde5 100644 --- a/Entity/User.php +++ b/Entity/User.php @@ -23,7 +23,7 @@ class User extends BaseUser { /** * @var \Doctrine\Common\Collections\Collection */ - private Collection $resources; + private Collection $assets; /** * Constructor @@ -45,39 +45,39 @@ class User extends BaseUser { //Set defaults //Set collections - $this->resources = new ArrayCollection(); + $this->assets = new ArrayCollection(); } /** - * Add resource + * Add asset * - * @param Resource $resource + * @param Asset $asset * * @return User */ - public function addResource(Resource $resource): User { - $this->resources[] = $resource; + public function addAsset(Asset $asset): User { + $this->assets[] = $asset; return $this; } /** - * Remove resource + * Remove asset * - * @param Resource $resource + * @param Asset $asset * * @return \Doctrine\Common\Collections\Collection */ - public function removeResource(Resource $resource): Collection { - return $this->resources->removeElement($resource); + public function removeAsset(Asset $asset): Collection { + return $this->assets->removeElement($asset); } /** - * Get resources + * Get assets * * @return \Doctrine\Common\Collections\Collection */ - public function getResources(): Collection { - return $this->resources; + public function getAssets(): Collection { + return $this->assets; } } -- 2.41.1