src/Entity/ContactCustom.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ContactCustomRepository;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassContactCustomRepository::class)]
  7. class ContactCustom
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private $id;
  13.     #[Assert\NotBlank]
  14.     #[ORM\Column(type'string'length255)]
  15.     private $name;
  16.     #[Assert\Email(message"Cet Email '{{ value }}' est pas un mail valide.")]
  17.     #[ORM\Column(type'string'length255)]
  18.     private $email;
  19.     #[Assert\NotBlank]
  20.     #[ORM\Column(type'string'length255)]
  21.     private $phone;
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private $address;
  24.     #[ORM\Column(type'string'length255nullabletrue)]
  25.     private $city;
  26.     #[ORM\Column(type'string'length255nullabletrue)]
  27.     private $zipCode;
  28.     #[ORM\Column(type'text'nullabletrue)]
  29.     private $message;
  30.     #[ORM\Column(type'boolean'nullabletrue)]
  31.     private $rgpd;
  32.     #[ORM\Column(type'datetime'nullabletrue)]
  33.     private $dateadd;
  34.     #[ORM\Column(type'string'length255nullabletrue)]
  35.     private $page;
  36.     #[ORM\Column(type'boolean'nullabletrueoptions: ['default' => 0])]
  37.     private $isadmin false;
  38.     #[ORM\Column(type'string'length255nullabletrue)]
  39.     private $subject;
  40.     #[ORM\ManyToOne(targetEntityAccountingFirm::class, inversedBy'contactsCustom')]
  41.     private $accountingFirm;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getName(): ?string
  47.     {
  48.         return $this->name;
  49.     }
  50.     public function setName(?string $name): self
  51.     {
  52.         $this->name $name;
  53.         return $this;
  54.     }
  55.     public function getEmail(): ?string
  56.     {
  57.         return $this->email;
  58.     }
  59.     public function setEmail(?string $email): self
  60.     {
  61.         $this->email $email;
  62.         return $this;
  63.     }
  64.     public function getPhone(): ?string
  65.     {
  66.         return $this->phone;
  67.     }
  68.     public function setPhone(?string $phone): self
  69.     {
  70.         $this->phone $phone;
  71.         return $this;
  72.     }
  73.     public function getAddress(): ?string
  74.     {
  75.         return $this->address;
  76.     }
  77.     public function setAddress(?string $address): self
  78.     {
  79.         $this->address $address;
  80.         return $this;
  81.     }
  82.     public function getCity(): ?string
  83.     {
  84.         return $this->city;
  85.     }
  86.     public function setCity(?string $city): self
  87.     {
  88.         $this->city $city;
  89.         return $this;
  90.     }
  91.     public function getZipCode(): ?string
  92.     {
  93.         return $this->zipCode;
  94.     }
  95.     public function setZipCode(?string $zipCode): self
  96.     {
  97.         $this->zipCode $zipCode;
  98.         return $this;
  99.     }
  100.     public function getMessage(): ?string
  101.     {
  102.         return $this->message;
  103.     }
  104.     public function setMessage(?string $message): self
  105.     {
  106.         $this->message $message;
  107.         return $this;
  108.     }
  109.     public function getRgpd(): ?bool
  110.     {
  111.         return $this->rgpd;
  112.     }
  113.     public function setRgpd(?bool $rgpd): self
  114.     {
  115.         $this->rgpd $rgpd;
  116.         return $this;
  117.     }
  118.     public function getDateadd(): ?\DateTimeInterface
  119.     {
  120.         return $this->dateadd;
  121.     }
  122.     public function setDateadd(?\DateTimeInterface $dateadd): self
  123.     {
  124.         $this->dateadd $dateadd;
  125.         return $this;
  126.     }
  127.     public function getPage(): ?string
  128.     {
  129.         return $this->page;
  130.     }
  131.     public function setPage(?string $page): self
  132.     {
  133.         $this->page $page;
  134.         return $this;
  135.     }
  136.     public function getIsadmin(): ?bool
  137.     {
  138.         return $this->isadmin;
  139.     }
  140.     public function setIsadmin(?bool $isadmin): self
  141.     {
  142.         $this->isadmin $isadmin;
  143.         return $this;
  144.     }
  145.     public function getsubject(): ?string
  146.     {
  147.         return $this->subject;
  148.     }
  149.     public function setsubject(?string $subject): self
  150.     {
  151.         $this->subject $subject;
  152.         return $this;
  153.     }
  154.     public function getAccountingFirm(): ?AccountingFirm
  155.     {
  156.         return $this->accountingFirm;
  157.     }
  158.     public function setAccountingFirm(?AccountingFirm $accountingFirm): self
  159.     {
  160.         $this->accountingFirm $accountingFirm;
  161.         return $this;
  162.     }
  163. }