<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use App\Entity\SpecialiteDocteur as SpecialiteDocteur;
use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\Common\Collections\ArrayCollection;
/**
* TODO: depecreated to delete
* ContactMedecin
*
* @ApiResource
* @ORM\Table()
* @ORM\Entity(repositoryClass="App\Entity\ContactMedecinRepository")
*/
class ContactMedecin
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="genre", type="string", length=100)
*
*/
private $genre;
/**
* @var string
*
* @ORM\Column(name="nom", type="string", length=100)
*
* @Assert\NotBlank()
*/
private $nom;
/**
* @var string
*
* @ORM\Column(name="prenom", type="string", length=100)
*
* @Assert\NotBlank()
*/
private $prenom;
/**
* @var string
*
* @ORM\Column(name="email", type="string", length=255)
*
* @Assert\NotBlank()
*/
private $email;
/**
* @var string
*
* @ORM\Column(name="tel", type="string", length=20)
*
* @Assert\NotBlank()
*/
private $tel;
/**
* @var ArrayCollection
*
* @ORM\ManyToOne(targetEntity="App\Entity\SpecialiteDocteur")
*/
private $specialite;
public function __toString()
{
return ($this->getNom()) ? $this->getNom() : '';
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Get genre
*
* @return string
*/
public function getGenre()
{
return $this->genre;
}
/**
* Set genre
*
* @param string $genre
*
* @return ContactMedecin
*/
public function setGenre($genre)
{
$this->genre = $genre;
return $this;
}
/**
* Get nom
*
* @return string
*/
public function getNom()
{
return $this->nom;
}
/**
* Set nom
*
* @param string $nom
*
* @return ContactMedecin
*/
public function setNom($nom)
{
$this->nom = $nom;
return $this;
}
/**
* Get prenom
*
* @return string
*/
public function getPrenom()
{
return $this->prenom;
}
/**
* Set prenom
*
* @param string $prenom
*
* @return ContactMedecin
*/
public function setPrenom($prenom)
{
$this->prenom = $prenom;
return $this;
}
/**
* Get email
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Set email
*
* @param string $email
*
* @return ContactMedecin
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get tel
*
* @return string
*/
public function getTel()
{
return $this->tel;
}
/**
* Set tel
*
* @param string $tel
*
* @return ContactMedecin
*/
public function setTel($tel)
{
$this->tel = $tel;
return $this;
}
/**
* Get specialite
*
* @return ArrayCollection
*/
public function getSpecialite()
{
return $this->specialite;
}
/**
* Set specialite
*
* @param SpecialiteDocteur $specialite
*
* @return ContactMedecin
*/
public function setSpecialite(SpecialiteDocteur $specialite)
{
$this->specialite = $specialite;
return $this;
}
}