src/Entity/FormAdresses.php line 10

Open in your IDE?
  1. <?php
  2. namespace Acme\SudcmsBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. #[ORM\Entity(repositoryClass'Acme\SudcmsBundle\Repository\FormAdressesRepository')]
  6. class FormAdresses
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     #[Assert\Email]
  14.     private $email;
  15.     #[ORM\Column(type'string'length255)]
  16.     private $type;
  17.     #[ORM\Column(type'datetime')]
  18.     private $creationDatetime;
  19.     #[ORM\Column(type'string'length255nullabletrue)]
  20.     private $nom;
  21.     #[ORM\Column(type'string'length255nullabletrue)]
  22.     private $prenom;
  23.     #[ORM\ManyToOne(targetEntity'Acme\SudcmsBundle\Entity\FormSite'inversedBy'formAdresses')]
  24.     #[ORM\JoinColumn(nullablefalse)]
  25.     private $formSite;
  26.     #[ORM\Column(type'boolean')]
  27.     private $enabled;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getEmail(): ?string
  33.     {
  34.         return $this->email;
  35.     }
  36.     public function setEmail(string $email): self
  37.     {
  38.         $this->email $email;
  39.         return $this;
  40.     }
  41.     public function getType(): ?string
  42.     {
  43.         return $this->type;
  44.     }
  45.     public function setType(string $type): self
  46.     {
  47.         $this->type $type;
  48.         return $this;
  49.     }
  50.     public function getCreationDatetime(): ?\DateTimeInterface
  51.     {
  52.         return $this->creationDatetime;
  53.     }
  54.     public function setCreationDatetime(\DateTimeInterface $creationDatetime): self
  55.     {
  56.         $this->creationDatetime $creationDatetime;
  57.         return $this;
  58.     }
  59.     public function getNom(): ?string
  60.     {
  61.         return $this->nom;
  62.     }
  63.     public function setNom(?string $nom): self
  64.     {
  65.         $this->nom $nom;
  66.         return $this;
  67.     }
  68.     public function getPrenom(): ?string
  69.     {
  70.         return $this->prenom;
  71.     }
  72.     public function setPrenom(?string $prenom): self
  73.     {
  74.         $this->prenom $prenom;
  75.         return $this;
  76.     }
  77.     public function getFormSite(): ?FormSite
  78.     {
  79.         return $this->formSite;
  80.     }
  81.     public function setFormSite(?FormSite $formSite): self
  82.     {
  83.         $this->formSite $formSite;
  84.         return $this;
  85.     }
  86.     public function getEnabled(): ?bool
  87.     {
  88.         return $this->enabled;
  89.     }
  90.     public function setEnabled(bool $enabled): self
  91.     {
  92.         $this->enabled $enabled;
  93.         return $this;
  94.     }
  95. }