src/Entity/Testimonials.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TestimonialsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=TestimonialsRepository::class)
  7.  */
  8. class Testimonials
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      *
  13.      * @ORM\GeneratedValue
  14.      *
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $fullname;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $email;
  26.     /**
  27.      * @ORM\Column(type="text")
  28.      */
  29.     private $message;
  30.     /**
  31.      * @ORM\Column(type="datetime_immutable")
  32.      */
  33.     private $createdAt;
  34.     /**
  35.      * @ORM\Column(type="datetime_immutable")
  36.      */
  37.     private $validatedAt;
  38.     /**
  39.      * @ORM\Column(type="integer")
  40.      */
  41.     private $rate;
  42.     /**
  43.      * @ORM\Column(type="string", length=255, nullable=true)
  44.      */
  45.     private $siteUrl;
  46.     public function getId(): ?int
  47.     {
  48.         return $this->id;
  49.     }
  50.     public function getFullname(): ?string
  51.     {
  52.         return $this->fullname;
  53.     }
  54.     public function setFullname(string $fullname): self
  55.     {
  56.         $this->fullname $fullname;
  57.         return $this;
  58.     }
  59.     public function getEmail(): ?string
  60.     {
  61.         return $this->email;
  62.     }
  63.     public function setEmail(string $email): self
  64.     {
  65.         $this->email $email;
  66.         return $this;
  67.     }
  68.     public function getMessage(): ?string
  69.     {
  70.         return $this->message;
  71.     }
  72.     public function setMessage(string $message): self
  73.     {
  74.         $this->message $message;
  75.         return $this;
  76.     }
  77.     public function getCreatedAt(): ?\DateTimeImmutable
  78.     {
  79.         return $this->createdAt;
  80.     }
  81.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  82.     {
  83.         $this->createdAt $createdAt;
  84.         return $this;
  85.     }
  86.     public function getValidatedAt(): ?\DateTimeImmutable
  87.     {
  88.         return $this->validatedAt;
  89.     }
  90.     public function setValidatedAt(\DateTimeImmutable $validatedAt): self
  91.     {
  92.         $this->validatedAt $validatedAt;
  93.         return $this;
  94.     }
  95.     public function getRate(): ?int
  96.     {
  97.         return $this->rate;
  98.     }
  99.     public function setRate(int $rate): self
  100.     {
  101.         $this->rate $rate;
  102.         return $this;
  103.     }
  104.     public function getSiteUrl(): ?string
  105.     {
  106.         return $this->siteUrl;
  107.     }
  108.     public function setSiteUrl(?string $siteUrl): self
  109.     {
  110.         $this->siteUrl $siteUrl;
  111.         return $this;
  112.     }
  113. }