src/Entity/UserDetail.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UserDetailRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassUserDetailRepository::class)]
  7. class UserDetail
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\OneToOne(inversedBy'userDetail'cascade: ['persist''remove'])]
  12.     private ?User $user null;
  13.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  14.     private ?string $about null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $facebook null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $linkedin null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $twitter null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $instagram null;
  23.     #[ORM\Column]
  24.     private ?int $updatedBy null;
  25.     #[ORM\Column]
  26.     private ?string $identificationNumber null;
  27.     #[ORM\Column]
  28.     private ?string $identificationType null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $street null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $state null;
  33.     #[ORM\Column(length255nullabletrue)]
  34.     private ?string $postCode null;
  35.     #[ORM\Column(length255nullabletrue)]
  36.     private ?string $houseNumber null;
  37.     #[ORM\Column(nullabletrue)]
  38.     private ?int $newsletter null;
  39.     #[ORM\Column(nullabletrue)]
  40.     private ?int $displayInWeb null;
  41.     public function getUser(): ?User
  42.     {
  43.         return $this->user;
  44.     }
  45.     public function setUser(?User $user): static
  46.     {
  47.         $this->user $user;
  48.         return $this;
  49.     }
  50.     public function getAbout(): ?string
  51.     {
  52.         return $this->about;
  53.     }
  54.     public function setAbout(?string $about): static
  55.     {
  56.         $this->about $about;
  57.         return $this;
  58.     }
  59.     public function getFacebook(): ?string
  60.     {
  61.         return $this->facebook;
  62.     }
  63.     public function setFacebook(?string $facebook): static
  64.     {
  65.         $this->facebook $facebook;
  66.         return $this;
  67.     }
  68.     public function getLinkedin(): ?string
  69.     {
  70.         return $this->linkedin;
  71.     }
  72.     public function setLinkedin(?string $linkedin): static
  73.     {
  74.         $this->linkedin $linkedin;
  75.         return $this;
  76.     }
  77.     public function getTwitter(): ?string
  78.     {
  79.         return $this->twitter;
  80.     }
  81.     public function setTwitter(?string $twitter): static
  82.     {
  83.         $this->twitter $twitter;
  84.         return $this;
  85.     }
  86.     public function getInstagram(): ?string
  87.     {
  88.         return $this->instagram;
  89.     }
  90.     public function setInstagram(?string $instagram): static
  91.     {
  92.         $this->instagram $instagram;
  93.         return $this;
  94.     }
  95.     public function getUpdatedBy(): ?int
  96.     {
  97.         return $this->updatedBy;
  98.     }
  99.     public function setUpdatedBy(int $updatedBy): static
  100.     {
  101.         $this->updatedBy $updatedBy;
  102.         return $this;
  103.     }
  104.     public function getIdentificationNumber(): ?string
  105.     {
  106.         return $this->identificationNumber;
  107.     }
  108.     public function setIdentificationNumber(?string $identificationNumber): static
  109.     {
  110.         $this->identificationNumber $identificationNumber;
  111.         return $this;
  112.     }
  113.     public function getStreet(): ?string
  114.     {
  115.         return $this->street;
  116.     }
  117.     public function setStreet(?string $street): static
  118.     {
  119.         $this->street $street;
  120.         return $this;
  121.     }
  122.     public function getState(): ?string
  123.     {
  124.         return $this->state;
  125.     }
  126.     public function setState(?string $state): static
  127.     {
  128.         $this->state $state;
  129.         return $this;
  130.     }
  131.     public function getPostCode(): ?string
  132.     {
  133.         return $this->postCode;
  134.     }
  135.     public function setPostCode(?string $postCode): static
  136.     {
  137.         $this->postCode $postCode;
  138.         return $this;
  139.     }
  140.     public function getNewsletter(): ?int
  141.     {
  142.         return $this->newsletter;
  143.     }
  144.     public function setNewsletter(?int $newsletter): static
  145.     {
  146.         $this->newsletter $newsletter;
  147.         return $this;
  148.     }
  149.     public function getDisplayInWeb(): ?int
  150.     {
  151.         return $this->displayInWeb;
  152.     }
  153.     /**
  154.      * @return string|null
  155.      */
  156.     public function getIdentificationType(): ?string
  157.     {
  158.         return $this->identificationType;
  159.     }
  160.     /**
  161.      * @param string|null $identificationType
  162.      */
  163.     public function setIdentificationType(?string $identificationType): void
  164.     {
  165.         $this->identificationType $identificationType;
  166.     }
  167.     public function setDisplayInWeb(?int $displayInWeb): static
  168.     {
  169.         $this->displayInWeb $displayInWeb;
  170.         return $this;
  171.     }
  172.     public function getHouseNumber(): ?string
  173.     {
  174.         return $this->houseNumber;
  175.     }
  176.     public function setHouseNumber(?string $houseNumber): void
  177.     {
  178.         $this->houseNumber $houseNumber;
  179.     }
  180. }