src/Entity/Contact.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassContactRepository::class)]
  7. class Contact
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length30nullabletrue)]
  14.     private ?string $name null;
  15.     #[ORM\Column(length30nullabletrue)]
  16.     private ?string $surname null;
  17.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  18.     private ?string $message null;
  19.     #[ORM\Column(length40nullabletrue)]
  20.     private ?string $email null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $ip_address null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getName(): ?string
  28.     {
  29.         return $this->name;
  30.     }
  31.     public function setName(?string $name): static
  32.     {
  33.         $this->name $name;
  34.         return $this;
  35.     }
  36.     public function getSurname(): ?string
  37.     {
  38.         return $this->surname;
  39.     }
  40.     public function setSurname(?string $surname): static
  41.     {
  42.         $this->surname $surname;
  43.         return $this;
  44.     }
  45.     public function getMessage(): ?string
  46.     {
  47.         return $this->message;
  48.     }
  49.     public function setMessage(?string $message): static
  50.     {
  51.         $this->message $message;
  52.         return $this;
  53.     }
  54.     public function getEmail(): ?string
  55.     {
  56.         return $this->email;
  57.     }
  58.     public function setEmail(?string $email): static
  59.     {
  60.         $this->email $email;
  61.         return $this;
  62.     }
  63.     public function getIpAddress(): ?string
  64.     {
  65.         return $this->ip_address;
  66.     }
  67.     public function setIpAddress(?string $ip_address): static
  68.     {
  69.         $this->ip_address $ip_address;
  70.         return $this;
  71.     }
  72. }