<?php
namespace App\Entity;
use App\Repository\InscriptionRepository;
use Doctrine\ORM\Mapping as ORM;
// use Symfony\Component\Validator\Constraints\Length;
// use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=InscriptionRepository::class)
*/
class Inscription
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $nom;
/**
* @ORM\Column(type="string", length=255)
*/
private $prenom;
/**
* @ORM\Column(type="string", length=255)
*/
private $registration;
/**
* @ORM\Column(type="string", length=255)
*/
private $type;
/**
* @ORM\Column(type="date")
*/
private $date;
/**
* @ORM\ManyToOne(targetEntity=Congres::class, inversedBy="inscriptions")
*/
private $congres;
/**
* @ORM\ManyToOne(targetEntity=Event::class, inversedBy="inscriptions")
*/
private $event;
/**
* @ORM\Column(type="string", length=255)
*/
private $verified;
/**
* @ORM\Column(type="string", length=255)
*/
private $email;
/**
* @ORM\Column(type="string", length=255)
*/
private $adresse;
/**
* @ORM\Column(type="string", length=255)
*/
private $telephone;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $titre;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $specialite;
/**
* @ORM\Column(type="string", length=255)
*/
private $activite;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $role;
public function getId(): ?int
{
return $this->id;
}
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 getRegistration(): ?string
{
return $this->registration;
}
public function setRegistration(string $registration): self
{
$this->registration = $registration;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getCongres(): ?Congres
{
return $this->congres;
}
public function setCongres(?Congres $congres): self
{
$this->congres = $congres;
return $this;
}
public function getEvent(): ?Event
{
return $this->event;
}
public function setEvent(?Event $event): self
{
$this->event = $event;
return $this;
}
public function getVerified(): ?string
{
return $this->verified;
}
public function setVerified(string $verified): self
{
$this->verified = $verified;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getAdresse(): ?string
{
return $this->adresse;
}
public function setAdresse(string $adresse): self
{
$this->adresse = $adresse;
return $this;
}
public function getTelephone(): ?string
{
return $this->telephone;
}
public function setTelephone(string $telephone): self
{
$this->telephone = $telephone;
return $this;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(?string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getSpecialite(): ?string
{
return $this->specialite;
}
public function setSpecialite(?string $specialite): self
{
$this->specialite = $specialite;
return $this;
}
public function getActivite(): ?string
{
return $this->activite;
}
public function setActivite(string $activite): self
{
$this->activite = $activite;
return $this;
}
public function getRole(): ?string
{
return $this->role;
}
public function setRole(string $role): self
{
$this->role = $role;
return $this;
}
}