src/Entity/Identite.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\IdentiteRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=IdentiteRepository::class)
  8.  * @Auditable()
  9.  */
  10. class Identite
  11. {
  12.     /**
  13.      * @ORM\Id()
  14.      * @ORM\GeneratedValue()
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=50)
  20.      */
  21.     private $lastname;
  22.     /**
  23.      * @ORM\Column(type="string", length=255, nullable=true)
  24.      */
  25.     private $postname;
  26.     /**
  27.      * @ORM\Column(type="string", length=255, nullable=true)
  28.      */
  29.     private $firstname;
  30.     /**
  31.      * @ORM\Column(type="string", length=255)
  32.      */
  33.     private $birthPlace;
  34.     /**
  35.      * @ORM\Column(type="date")
  36.      */
  37.     private $birthDate;
  38.     /**
  39.      * @ORM\Column(type="boolean")
  40.      */
  41.     private $isDeleted;
  42.     /**
  43.      * @ORM\Column(type="string", length=10)
  44.      */
  45.     private $sexe;
  46.     /**
  47.      * @ORM\ManyToOne(targetEntity=Pcode::class)
  48.      */
  49.     private $origine;
  50.     /**
  51.      * @ORM\Column(type="blob", nullable=true)
  52.      * @ORM\JoinColumn(nullable=true)
  53.      */
  54.     private $photo;
  55.     /**
  56.      * @ORM\Column(type="datetime")
  57.      */
  58.     private $dateCreate;
  59.     /**
  60.      * @ORM\Column(type="datetime", nullable=true)
  61.      * @ORM\JoinColumn(nullable=false)
  62.      */
  63.     private $dateUpdate;
  64.     /**
  65.      * @ORM\ManyToOne(targetEntity=Users::class)
  66.      * @ORM\JoinColumn(nullable=false)
  67.      */
  68.     private $userCreate;
  69.     /**
  70.      * @ORM\ManyToOne(targetEntity=Users::class)
  71.      * @ORM\JoinColumn(nullable=true)
  72.      */
  73.     private $userUpdate;
  74.     /**
  75.      * @ORM\ManyToOne(targetEntity=Pcode::class)
  76.      */
  77.     private $nationality;
  78.     /**
  79.      * @ORM\ManyToOne(targetEntity=Profession::class)
  80.      */
  81.     private $profession;
  82.     /**
  83.      * @ORM\Column(type="string", length=255, nullable=true)
  84.      */
  85.     private $registrationNumber;
  86.     /**
  87.      * @ORM\Column(type="string", length=1000, nullable=true)
  88.      */
  89.     private $origineText;
  90.     /**
  91.      * @ORM\Column(type="string", length=1000, nullable=true)
  92.      */
  93.     private $adresse;
  94.     /**
  95.      * @ORM\ManyToOne(targetEntity=Sites::class)
  96.      */
  97.     private $registrationSite;
  98.     /**
  99.      * @ORM\Column(type="string", length=20, nullable=true)
  100.      */
  101.     private $civilite;
  102.      /**
  103.      * @ORM\Column(type="string", length=20, nullable=true)
  104.      */
  105.     private $eCivil;
  106.     public function __construct()
  107.     {
  108.         $this->isDeleted false;
  109.         $this->dateCreate = new \DateTime();
  110.     }
  111.     public function getId(): ?int
  112.     {
  113.         return $this->id;
  114.     }
  115.     public function getLastname(): ?string
  116.     {
  117.         return $this->lastname;
  118.     }
  119.     public function setLastname(string $lastname): self
  120.     {
  121.         $this->lastname $lastname;
  122.         return $this;
  123.     }
  124.     public function getPostname(): ?string
  125.     {
  126.         return $this->postname;
  127.     }
  128.     public function setPostname(string $postname): self
  129.     {
  130.         $this->postname $postname;
  131.         return $this;
  132.     }
  133.     public function getFirstname(): ?string
  134.     {
  135.         return $this->firstname;
  136.     }
  137.     public function setFirstname(string $firstname): self
  138.     {
  139.         $this->firstname $firstname;
  140.         return $this;
  141.     }
  142.     public function getBirthPlace(): ?string
  143.     {
  144.         return $this->birthPlace;
  145.     }
  146.     public function setBirthPlace(string $birthPlace): self
  147.     {
  148.         $this->birthPlace $birthPlace;
  149.         return $this;
  150.     }
  151.     public function getBirthDate(): ?\DateTimeInterface
  152.     {
  153.         return $this->birthDate;
  154.     }
  155.     public function setBirthDate(\DateTimeInterface $birthDate): self
  156.     {
  157.         $this->birthDate $birthDate;
  158.         return $this;
  159.     }
  160.     public function getIsDeleted(): ?bool
  161.     {
  162.         return $this->isDeleted;
  163.     }
  164.     public function setIsDeleted(bool $isDeleted): self
  165.     {
  166.         $this->isDeleted $isDeleted;
  167.         return $this;
  168.     }
  169.     public function getSexe(): ?string
  170.     {
  171.         return $this->sexe;
  172.     }
  173.     public function setSexe(string $sexe): self
  174.     {
  175.         $this->sexe $sexe;
  176.         return $this;
  177.     }
  178.     public function getOrigine(): ?Pcode
  179.     {
  180.         return $this->origine;
  181.     }
  182.     public function setOrigine(?Pcode $origine): self
  183.     {
  184.         $this->origine $origine;
  185.         return $this;
  186.     }
  187.     public function getPhoto()
  188.     {
  189.         return $this->photo;
  190.     }
  191.     public function setPhoto($photo): self
  192.     {
  193.         $this->photo $photo;
  194.         return $this;
  195.     }
  196.     public function getDateCreate(): ?\DateTimeInterface
  197.     {
  198.         return $this->dateCreate;
  199.     }
  200.     public function setDateCreate(\DateTimeInterface $dateCreate): self
  201.     {
  202.         $this->dateCreate $dateCreate;
  203.         return $this;
  204.     }
  205.     public function getDateUpdate(): ?\DateTimeInterface
  206.     {
  207.         return $this->dateUpdate;
  208.     }
  209.     public function setDateUpdate(?\DateTimeInterface $dateUpdate): self
  210.     {
  211.         $this->dateUpdate $dateUpdate;
  212.         return $this;
  213.     }
  214.     public function getUserCreate(): ?Users
  215.     {
  216.         return $this->userCreate;
  217.     }
  218.     public function setUserCreate(?Users $userCreate): self
  219.     {
  220.         $this->userCreate $userCreate;
  221.         return $this;
  222.     }
  223.     public function getUserUpdate(): ?Users
  224.     {
  225.         return $this->userUpdate;
  226.     }
  227.     public function setUserUpdate(?Users $userUpdate): self
  228.     {
  229.         $this->userUpdate $userUpdate;
  230.         return $this;
  231.     }
  232.     public function getFullName(): ?string
  233.     {
  234.         return mb_strtoupper($this->lastname)." ".mb_strtoupper($this->postname)." ".$this->firstname;
  235.     }
  236.     public function getNationality(): ?Pcode
  237.     {
  238.         return $this->nationality;
  239.     }
  240.     public function setNationality(?Pcode $nationality): self
  241.     {
  242.         $this->nationality $nationality;
  243.         return $this;
  244.     }
  245.     public function getProfession(): ?Profession
  246.     {
  247.         return $this->profession;
  248.     }
  249.     public function setProfession(?Profession $profession): self
  250.     {
  251.         $this->profession $profession;
  252.         return $this;
  253.     }
  254.     public function getRegistrationNumber(): ?string
  255.     {
  256.         return $this->registrationNumber;
  257.     }
  258.     public function setRegistrationNumber(?string $registrationNumber): self
  259.     {
  260.         $this->registrationNumber $registrationNumber;
  261.         return $this;
  262.     }
  263.     public function getAdresse(): ?string
  264.     {
  265.         return $this->adresse;
  266.     }
  267.     public function setAdresse(?string $adresse): self
  268.     {
  269.         $this->adresse $adresse;
  270.         return $this;
  271.     }
  272.     public function getOrigineText(): ?string
  273.     {
  274.         return $this->origineText;
  275.     }
  276.     public function setOrigineText(?string $origineText): self
  277.     {
  278.         $this->origineText $origineText;
  279.         return $this;
  280.     }
  281.     public function getRegistrationSite(): ?Sites
  282.     {
  283.         return $this->registrationSite;
  284.     }
  285.     public function setRegistrationSite(?Sites $registrationSite): self
  286.     {
  287.         $this->registrationSite $registrationSite;
  288.         return $this;
  289.     }
  290.     public function getCivilite(): ?string
  291.     {
  292.         return $this->civilite;
  293.     }
  294.     public function setCivilite(?string $civilite): self
  295.     {
  296.         $this->civilite $civilite;
  297.         return $this;
  298.     }
  299.     public function getEcivil(): ?string
  300.     {
  301.         return $this->eCivil;
  302.     }
  303.     public function setEcivil(?string $eCivil): self
  304.     {
  305.         $this->eCivil $eCivil;
  306.         return $this;
  307.     }
  308. }