src/Entity/Appointment.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AppointmentRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=AppointmentRepository::class)
  7.  */
  8. class Appointment implements AppointmentInterface
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $firstName;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $surname;
  24.     /**
  25.      * @ORM\Column(type="string", length=20)
  26.      */
  27.     private $phoneNumber;
  28.     /**
  29.      * @ORM\Column(type="string", length=150)
  30.      */
  31.     private $email;
  32.     /**
  33.      * @ORM\Column(type="text")
  34.      */
  35.     private $message;
  36.     /**
  37.      * @ORM\Column(type="date")
  38.      */
  39.     private $date;
  40.     /**
  41.      * @ORM\Column(type="time")
  42.      */
  43.     private $time;
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getFirstName(): ?string
  49.     {
  50.         return $this->firstName;
  51.     }
  52.     public function setFirstName(string $firstName): self
  53.     {
  54.         $this->firstName $firstName;
  55.         return $this;
  56.     }
  57.     public function getSurname(): ?string
  58.     {
  59.         return $this->surname;
  60.     }
  61.     public function setSurname(string $surname): self
  62.     {
  63.         $this->surname $surname;
  64.         return $this;
  65.     }
  66.     public function getPhoneNumber(): ?string
  67.     {
  68.         return $this->phoneNumber;
  69.     }
  70.     public function setPhoneNumber(string $phoneNumber): self
  71.     {
  72.         $this->phoneNumber $phoneNumber;
  73.         return $this;
  74.     }
  75.     public function getEmail(): ?string
  76.     {
  77.         return $this->email;
  78.     }
  79.     public function setEmail(string $email): self
  80.     {
  81.         $this->email $email;
  82.         return $this;
  83.     }
  84.     public function getMessage(): ?string
  85.     {
  86.         return $this->message;
  87.     }
  88.     public function setMessage(string $message): self
  89.     {
  90.         $this->message $message;
  91.         return $this;
  92.     }
  93.     public function getDate(): ?\DateTimeInterface
  94.     {
  95.         return $this->date;
  96.     }
  97.     public function setDate(\DateTimeInterface $date): self
  98.     {
  99.         $this->date $date;
  100.         return $this;
  101.     }
  102.     public function getTime(): ?\DateTimeInterface
  103.     {
  104.         return $this->time;
  105.     }
  106.     public function setTime(\DateTimeInterface $time): self
  107.     {
  108.         $this->time $time;
  109.         return $this;
  110.     }
  111. }