src/Entity/Guest.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GuestRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassGuestRepository::class)]
  7. class Guest
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $email null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $name null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $surname null;
  19.     #[ORM\Column(length1)]
  20.     private ?int $document_type null;
  21.     #[ORM\Column(length45)]
  22.     private ?string $document_number null;
  23.     #[ORM\Column(length255)]
  24.     private ?string $token null;
  25.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  26.     private ?\DateTimeInterface $register_date null;
  27.     #[ORM\Column(length200)]
  28.     private ?string $privacy_policy_url null;
  29.     #[ORM\Column(length45nullabletrue)]
  30.     private ?string $version null;
  31.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  32.     private ?\DateTimeInterface $accepting_date null;
  33.     #[ORM\Column(length1)]
  34.     private int $existUserAd;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getEmail(): ?string
  40.     {
  41.         return $this->email;
  42.     }
  43.     public function setEmail(string $email): static
  44.     {
  45.         $this->email $email;
  46.         return $this;
  47.     }
  48.     public function getName(): ?string
  49.     {
  50.         return $this->name;
  51.     }
  52.     public function setName(?string $name): static
  53.     {
  54.         $this->name $name;
  55.         return $this;
  56.     }
  57.     public function getSurname(): ?string
  58.     {
  59.         return $this->surname;
  60.     }
  61.     public function setSurname(?string $surname): static
  62.     {
  63.         $this->surname $surname;
  64.         return $this;
  65.     }
  66.     public function getDocumentType(): ?int
  67.     {
  68.         
  69.         return $this->document_type;
  70.     }
  71.     public function setDocumentType(int $document_type): static
  72.     {
  73.         $this->document_type $document_type;
  74.         return $this;
  75.     }
  76.     public function getDocumentNumber(): ?string
  77.     {
  78.         return $this->document_number;
  79.     }
  80.     public function setDocumentNumber(string $document_number): static
  81.     {
  82.         $this->document_number $document_number;
  83.         return $this;
  84.     }
  85.     public function getToken(): ?string
  86.     {
  87.         return $this->token;
  88.     }
  89.     public function setToken(string $token): static
  90.     {
  91.         $this->token $token;
  92.         return $this;
  93.     }
  94.     public function getRegisterDate(): ?\DateTimeInterface
  95.     {
  96.         return $this->register_date;
  97.     }
  98.     public function setRegisterDate(\DateTimeInterface $register_date): static
  99.     {
  100.         $this->register_date $register_date;
  101.         return $this;
  102.     }
  103.     public function getPrivacyPolicyUrl(): ?string
  104.     {
  105.         return $this->privacy_policy_url;
  106.     }
  107.     public function setPrivacyPolicyUrl(string $privacy_policy_url): static
  108.     {
  109.         $this->privacy_policy_url $privacy_policy_url;
  110.         return $this;
  111.     }
  112.     public function getVersion(): ?string
  113.     {
  114.         return $this->version;
  115.     }
  116.     public function setVersion(?string $version): static
  117.     {
  118.         $this->version $version;
  119.         return $this;
  120.     }
  121.     public function getAcceptingDate(): ?\DateTimeInterface
  122.     {
  123.         return $this->accepting_date;
  124.     }
  125.     public function setAcceptingDate(?\DateTimeInterface $accepting_date): static
  126.     {
  127.         $this->accepting_date $accepting_date;
  128.         return $this;
  129.     }
  130.     /**
  131.      * @param int|null $existUserAd
  132.      */
  133.     public function setExistUserAd(?int $existUserAd): void
  134.     {
  135.         $this->existUserAd $existUserAd;
  136.     }
  137.     /**
  138.      * @return int|null
  139.      */
  140.     public function getExistUserAd(): ?int
  141.     {
  142.         return $this->existUserAd;
  143.     }
  144. }