From a83a627a56333be6ebb6421129bb195b9ce42551 Mon Sep 17 00:00:00 2001 From: ALLAVENA--VALETTE Romain Date: Thu, 10 Oct 2024 14:47:52 +0200 Subject: [PATCH] update user --- src/Entity/User.php | 77 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/src/Entity/User.php b/src/Entity/User.php index 34c4b48..4536d5c 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -32,6 +32,21 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface #[ORM\Column] private ?string $password = null; + #[ORM\Column(length: 255)] + private ?string $firstName = null; + + #[ORM\Column(length: 255)] + private ?string $lastName = null; + + #[ORM\Column(length: 255)] + private ?string $tel = null; + + #[ORM\Column(length: 255)] + private ?string $address = null; + + #[ORM\Column(length: 255)] + private ?string $mail = null; + public function getId(): ?int { return $this->id; @@ -106,4 +121,66 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface // If you store any temporary, sensitive data on the user, clear it here // $this->plainPassword = null; } + + public function getFirstName(): ?string + { + return $this->firstName; + } + + public function setFirstName(string $firstName): static + { + $this->firstName = $firstName; + + return $this; + } + + public function getLastName(): ?string + { + return $this->lastName; + } + + public function setLastName(string $lastName): static + { + $this->lastName = $lastName; + + return $this; + } + + public function getTel(): ?string + { + return $this->tel; + } + + public function setTel(string $tel): static + { + $this->tel = $tel; + + return $this; + } + + public function getAddress(): ?string + { + return $this->address; + } + + public function setAddress(string $address): static + { + $this->address = $address; + + return $this; + } + + public function getMail(): ?string + { + return $this->mail; + } + + public function setMail(string $mail): static + { + $this->mail = $mail; + + return $this; + } } + +