src/Entity/Contact.php line 15

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use DateTimeInterface;
  5. use App\Repository\ContactRepository;
  6. use DateTime;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * @ORM\Entity(repositoryClass=ContactRepository::class)
  10.  */
  11. class Contact
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      *
  16.      * @ORM\GeneratedValue
  17.      *
  18.      * @ORM\Column(type="integer")
  19.      */
  20.     private $id;
  21.     /** @ORM\Column(type="string", length=255) */
  22.     private $name;
  23.     /** @ORM\Column(type="string", length=255) */
  24.     private $lastName;
  25.     /** @ORM\Column(type="string", length=255, nullable=true) */
  26.     private $company;
  27.     /** @ORM\Column(type="string", length=20) */
  28.     private $phone;
  29.     /** @ORM\Column(type="string", length=255) */
  30.     private $email;
  31.     /** @ORM\Column(type="text", length=1000, nullable=true) */
  32.     private $adress;
  33.     /** @ORM\Column(type="string", length=100) */
  34.     private $country;
  35.     /** @ORM\Column(type="string", length=255) */
  36.     private $eventType;
  37.     /** @ORM\Column(type="datetime") */
  38.     private $eventDate;
  39.     /** @ORM\Column(type="integer") */
  40.     private int $peopleNumber 0;
  41.     /** @ORM\Column(type="boolean", nullable=true) */
  42.     private ?bool $bookingRoom false;
  43.     /** @ORM\Column(type="text", nullable=true) */
  44.     private $message;
  45.     public function __construct()
  46.     {
  47.         $this->eventDate = new DateTime();
  48.     }
  49.     public function getId(): ?int
  50.     {
  51.         return $this->id;
  52.     }
  53.     public function getName(): ?string
  54.     {
  55.         return $this->name;
  56.     }
  57.     public function setName(string $name): self
  58.     {
  59.         $this->name $name;
  60.         return $this;
  61.     }
  62.     public function getLastName(): ?string
  63.     {
  64.         return $this->lastName;
  65.     }
  66.     public function setLastName(string $lastName): self
  67.     {
  68.         $this->lastName $lastName;
  69.         return $this;
  70.     }
  71.     public function getCompany(): ?string
  72.     {
  73.         return $this->company;
  74.     }
  75.     public function setCompany(?string $company): self
  76.     {
  77.         $this->company $company;
  78.         return $this;
  79.     }
  80.     public function getPhone(): ?string
  81.     {
  82.         return $this->phone;
  83.     }
  84.     public function setPhone(string $phone): self
  85.     {
  86.         $this->phone $phone;
  87.         return $this;
  88.     }
  89.     public function getEmail(): ?string
  90.     {
  91.         return $this->email;
  92.     }
  93.     public function setEmail(string $email): self
  94.     {
  95.         $this->email $email;
  96.         return $this;
  97.     }
  98.     public function getCountry(): ?string
  99.     {
  100.         return $this->country;
  101.     }
  102.     public function setCountry(string $country): self
  103.     {
  104.         $this->country $country;
  105.         return $this;
  106.     }
  107.     public function getEventType(): ?string
  108.     {
  109.         return $this->eventType;
  110.     }
  111.     public function setEventType(string $eventType): self
  112.     {
  113.         $this->eventType $eventType;
  114.         return $this;
  115.     }
  116.     public function getEventDate(): ?DateTimeInterface
  117.     {
  118.         return $this->eventDate;
  119.     }
  120.     public function setEventDate(DateTimeInterface $eventDate): self
  121.     {
  122.         $this->eventDate $eventDate;
  123.         return $this;
  124.     }
  125.     public function getPeopleNumber(): ?int
  126.     {
  127.         return $this->peopleNumber;
  128.     }
  129.     public function setPeopleNumber(int $peopleNumber): self
  130.     {
  131.         $this->peopleNumber $peopleNumber;
  132.         return $this;
  133.     }
  134.     public function getBookingRoom(): ?bool
  135.     {
  136.         return $this->bookingRoom;
  137.     }
  138.     public function setBookingRoom(?bool $bookingRoom): self
  139.     {
  140.         $this->bookingRoom $bookingRoom;
  141.         return $this;
  142.     }
  143.     public function getMessage(): ?string
  144.     {
  145.         return $this->message;
  146.     }
  147.     public function setMessage(?string $message): self
  148.     {
  149.         $this->message $message;
  150.         return $this;
  151.     }
  152.     public function getAdress(): ?string
  153.     {
  154.         return $this->adress;
  155.     }
  156.     public function setAdress(string $adress): self
  157.     {
  158.         $this->adress $adress;
  159.         return $this;
  160.     }
  161. }