<?php
namespace App\Entity;
use App\Entity\User;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\ParticulierRepository;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: ParticulierRepository::class)]
class Particulier extends User
{
/**
* @Assert\NotBlank(message=" titre doit etre non vide")
* )
* @ORM\Column(type="string", length=255)
*/
#[ORM\Column(type: 'string', length: 255)]
private $nom;
/**
* @Assert\NotBlank(message=" titre doit etre non vide")
* @ORM\Column(type="string", length=255)
*/
#[ORM\Column(type: 'string', length: 255)]
private $prenom;
/**
* @Assert\NotBlank(message=" titre doit etre non vide")
* @ORM\Column(type="string", length=255)
*/
#[ORM\Column(type: 'string', length: 255)]
private $tel;
#[ORM\ManyToOne()]
private ?Gouvernorat $gouvernorat = null;
/**
* @Assert\NotBlank(message=" fonction doit etre non vide")
* @ORM\Column(type="string", length=255)
*/
#[ORM\Column(type: 'string', length: 255)]
private $fonction;
/**
* @ORM\Column(type="string", length=255)
*/
#[ORM\Column(type: 'string', length: 255,nullable:true)]
private $autre;
/**
* @ORM\Column(type="string", length=255)
*/
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $fonctions;
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 getTel(): ?string
{
return $this->tel;
}
public function setTel(string $tel): self
{
$this->tel = $tel;
return $this;
}
public function getGouvernorat(): ?Gouvernorat
{
return $this->gouvernorat;
}
public function setGouvernorat(?Gouvernorat $gouvernorat): self
{
$this->gouvernorat = $gouvernorat;
return $this;
}
/**
* Get the value of fonction
*/
public function getFonction()
{
return $this->fonction;
}
/**
* Set the value of fonction
*
* @return self
*/
public function setFonction($fonction)
{
$this->fonction = $fonction;
return $this;
}
/**
* Get the value of autre
*/
public function getAutre()
{
return $this->autre;
}
/**
* Set the value of autre
*
* @return self
*/
public function setAutre($autre)
{
$this->autre = $autre;
return $this;
}
/**
* Get the value of fonctions
*/
public function getFonctions()
{
return $this->fonctions;
}
/**
* Set the value of fonctions
*
* @return self
*/
public function setFonctions($fonctions)
{
$this->fonctions = $fonctions;
return $this;
}
}