src/Entity/UserInformation.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\UX\Turbo\Attribute\Broadcast;
  6. #[ORM\Embeddable]
  7. #[Broadcast]
  8. class UserInformation
  9. {
  10.     #[ORM\Column(length255)]
  11.     private ?string $firstName null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $lastName null;
  14.     #[ORM\Column(typeTypes::TEXT)]
  15.     private ?string $description null;
  16.     #[ORM\Column(typeTypes::DATE_MUTABLE)]
  17.     private ?\DateTimeInterface $birthday null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $phone null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $title null;
  22.     #[ORM\Column(length255)]
  23.     private ?string $email null;
  24.     #[ORM\Column]
  25.     private ?\DateTimeImmutable $createdAt null;
  26.     #[ORM\Column]
  27.     private ?string $profilePicturePath null;
  28.     public function __construct()
  29.     {
  30.         $this->birthday = new \DateTime();
  31.     }
  32.     public function getFirstName(): ?string
  33.     {
  34.         return $this->firstName;
  35.     }
  36.     public function setFirstName(string $firstName): self
  37.     {
  38.         $this->firstName $firstName;
  39.         return $this;
  40.     }
  41.     public function getLastName(): ?string
  42.     {
  43.         return $this->lastName;
  44.     }
  45.     public function setLastName(string $lastName): self
  46.     {
  47.         $this->lastName $lastName;
  48.         return $this;
  49.     }
  50.     public function getDescription(): ?string
  51.     {
  52.         return $this->description;
  53.     }
  54.     public function setDescription(string $description): self
  55.     {
  56.         $this->description $description;
  57.         return $this;
  58.     }
  59.     public function getBirthday(): ?\DateTimeInterface
  60.     {
  61.         return $this->birthday;
  62.     }
  63.     public function setBirthday(\DateTimeInterface $birthday): self
  64.     {
  65.         $this->birthday $birthday;
  66.         return $this;
  67.     }
  68.     public function getPhone(): ?string
  69.     {
  70.         return $this->phone;
  71.     }
  72.     public function setPhone(string $phone): self
  73.     {
  74.         $this->phone $phone;
  75.         return $this;
  76.     }
  77.     public function getTitle(): ?string
  78.     {
  79.         return $this->title;
  80.     }
  81.     public function setTitle(string $title): self
  82.     {
  83.         $this->title $title;
  84.         return $this;
  85.     }
  86.     public function getCreatedAt(): ?\DateTimeImmutable
  87.     {
  88.         return $this->createdAt;
  89.     }
  90.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  91.     {
  92.         $this->createdAt $createdAt;
  93.         return $this;
  94.     }
  95.     public function getProfilePicturePath(): ?string
  96.     {
  97.         return $this->profilePicturePath;
  98.     }
  99.     public function setProfilePicturePath(?string $profilePicturePath): UserInformation
  100.     {
  101.         $this->profilePicturePath $profilePicturePath;
  102.         return $this;
  103.     }
  104.     /**
  105.      * @return string|null
  106.      */
  107.     public function getEmail(): ?string
  108.     {
  109.         return $this->email;
  110.     }
  111.     /**
  112.      * @param string|null $email
  113.      * @return UserInformation
  114.      */
  115.     public function setEmail(?string $email): UserInformation
  116.     {
  117.         $this->email $email;
  118.         return $this;
  119.     }
  120. }