src/Entity/ContactRequest.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactRequestRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Moka\Cms\GeneratedEntity\Entry\Store;
  6. #[ORM\Entity(repositoryClassContactRequestRepository::class)]
  7. class ContactRequest
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private ?int $id null;
  13.     #[ORM\Column(type'string'length255)]
  14.     private ?string $firstname null;
  15.     #[ORM\Column(type'string'length255)]
  16.     private ?string $lastname null;
  17.     #[ORM\Column(type'string'length255)]
  18.     private ?string $email null;
  19.     #[ORM\Column(type'string'length255)]
  20.     private ?string $zipcode null;
  21.     #[ORM\Column(type'string'length255nullabletrue)]
  22.     private ?string $city null;
  23.     #[ORM\Column(type'string'length255nullabletrue)]
  24.     private ?string $phone null;
  25.     #[ORM\Column(type'text')]
  26.     private ?string $message null;
  27.     #[ORM\ManyToOne(targetEntityStore::class)]
  28.     private ?Store $store null;
  29.     #[ORM\Column(type'datetime_immutable')]
  30.     private \DateTimeImmutable $createdAt;
  31.     public function __construct()
  32.     {
  33.         $this->createdAt = new \DateTimeImmutable();
  34.     }
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getFirstname(): ?string
  40.     {
  41.         return $this->firstname;
  42.     }
  43.     public function setFirstname(string $firstname): self
  44.     {
  45.         $this->firstname $firstname;
  46.         return $this;
  47.     }
  48.     public function getLastname(): ?string
  49.     {
  50.         return $this->lastname;
  51.     }
  52.     public function setLastname(string $lastname): self
  53.     {
  54.         $this->lastname $lastname;
  55.         return $this;
  56.     }
  57.     public function getEmail(): ?string
  58.     {
  59.         return $this->email;
  60.     }
  61.     public function setEmail(string $email): self
  62.     {
  63.         $this->email $email;
  64.         return $this;
  65.     }
  66.     public function getZipcode(): ?string
  67.     {
  68.         return $this->zipcode;
  69.     }
  70.     public function setZipcode(string $zipcode): self
  71.     {
  72.         $this->zipcode $zipcode;
  73.         return $this;
  74.     }
  75.     public function getCity(): ?string
  76.     {
  77.         return $this->city;
  78.     }
  79.     public function setCity(?string $city): self
  80.     {
  81.         $this->city $city;
  82.         return $this;
  83.     }
  84.     public function getPhone(): ?string
  85.     {
  86.         return $this->phone;
  87.     }
  88.     public function setPhone(?string $phone): self
  89.     {
  90.         $this->phone $phone;
  91.         return $this;
  92.     }
  93.     public function getMessage(): ?string
  94.     {
  95.         return $this->message;
  96.     }
  97.     public function setMessage(string $message): self
  98.     {
  99.         $this->message $message;
  100.         return $this;
  101.     }
  102.     public function getStore(): ?Store
  103.     {
  104.         return $this->store;
  105.     }
  106.     public function setStore(?Store $store): self
  107.     {
  108.         $this->store $store;
  109.         return $this;
  110.     }
  111.     public function getCreatedAt(): ?\DateTimeImmutable
  112.     {
  113.         return $this->createdAt;
  114.     }
  115.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  116.     {
  117.         $this->createdAt $createdAt;
  118.         return $this;
  119.     }
  120. }