<?php
namespace Acme\SudcmsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: 'Acme\SudcmsBundle\Repository\FormAdressesRepository')]
class FormAdresses
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
#[Assert\Email]
private $email;
#[ORM\Column(type: 'string', length: 255)]
private $type;
#[ORM\Column(type: 'datetime')]
private $creationDatetime;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $nom;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $prenom;
#[ORM\ManyToOne(targetEntity: 'Acme\SudcmsBundle\Entity\FormSite', inversedBy: 'formAdresses')]
#[ORM\JoinColumn(nullable: false)]
private $formSite;
#[ORM\Column(type: 'boolean')]
private $enabled;
public function getId(): ?int
{
return $this->id;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getCreationDatetime(): ?\DateTimeInterface
{
return $this->creationDatetime;
}
public function setCreationDatetime(\DateTimeInterface $creationDatetime): self
{
$this->creationDatetime = $creationDatetime;
return $this;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getPrenom(): ?string
{
return $this->prenom;
}
public function setPrenom(?string $prenom): self
{
$this->prenom = $prenom;
return $this;
}
public function getFormSite(): ?FormSite
{
return $this->formSite;
}
public function setFormSite(?FormSite $formSite): self
{
$this->formSite = $formSite;
return $this;
}
public function getEnabled(): ?bool
{
return $this->enabled;
}
public function setEnabled(bool $enabled): self
{
$this->enabled = $enabled;
return $this;
}
}