From 3373b2b88aab6b7e62e16467d2dcb827e16d896a Mon Sep 17 00:00:00 2001 From: Fabrice Gangler <fabrice.gangler@adullact.org> Date: Tue, 23 Jul 2024 17:48:12 +0200 Subject: [PATCH] =?UTF-8?q?feat(software):=20add=20[=C2=A0name=20]=20prope?= =?UTF-8?q?rty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/src/Entity/Software.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/webapp/src/Entity/Software.php b/webapp/src/Entity/Software.php index 5e1a25b..9a899fe 100644 --- a/webapp/src/Entity/Software.php +++ b/webapp/src/Entity/Software.php @@ -13,8 +13,23 @@ class Software #[ORM\Column] private ?int $id = null; + #[ORM\Column(length: 125)] + private ?string $name = null; + public function getId(): ?int { return $this->id; } + + public function getName(): ?string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + + return $this; + } } -- GitLab