src/Entity/Chercheur.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ChercheurRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassChercheurRepository::class)]
  9. class Chercheur extends User
  10. {
  11.     
  12.     #[ORM\Column(length255nullabletrue)]
  13.     private ?string $nom null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     private ?string $prenom null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $grade null;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $affiliation null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $photo null;
  22.     #[ORM\Column(nullabletrue)]
  23.     private ?int $telephone null;
  24.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  25.     private ?\DateTimeInterface $dateinscription null;
  26.     #[ORM\OneToMany(targetEntityPaper::class, mappedBy'chercheur'cascade: ['persist''remove'])]
  27.     private Collection $papers;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $country null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $photocov null;
  32.     #[ORM\Column(nullabletrue)]
  33.     private ?bool $iscertificate  false;
  34.     public function __construct()
  35.     {
  36.         $this->papers = new ArrayCollection();
  37.     }
  38.     
  39.     
  40.     
  41.     public function getNom(): ?string
  42.     {
  43.         return $this->nom;
  44.     }
  45.     public function setNom(?string $nom): static
  46.     {
  47.         $this->nom $nom;
  48.         return $this;
  49.     }
  50.     public function getPrenom(): ?string
  51.     {
  52.         return $this->prenom;
  53.     }
  54.     public function setPrenom(?string $prenom): static
  55.     {
  56.         $this->prenom $prenom;
  57.         return $this;
  58.     }
  59.     public function getGrade(): ?string
  60.     {
  61.         return $this->grade;
  62.     }
  63.     public function setGrade(?string $grade): static
  64.     {
  65.         $this->grade $grade;
  66.         return $this;
  67.     }
  68.     public function getAffiliation(): ?string
  69.     {
  70.         return $this->affiliation;
  71.     }
  72.     public function setAffiliation(?string $affiliation): static
  73.     {
  74.         $this->affiliation $affiliation;
  75.         return $this;
  76.     }
  77.     public function getPhoto(): ?string
  78.     {
  79.         return $this->photo;
  80.     }
  81.     public function setPhoto(string $photo): static
  82.     {
  83.         $this->photo $photo;
  84.         return $this;
  85.     }
  86.     public function getTelephone(): ?int
  87.     {
  88.         return $this->telephone;
  89.     }
  90.     public function setTelephone(?int $telephone): static
  91.     {
  92.         $this->telephone $telephone;
  93.         return $this;
  94.     }
  95.     public function getDateinscription(): ?\DateTimeInterface
  96.     {
  97.         return $this->dateinscription;
  98.     }
  99.     public function setDateinscription(?\DateTimeInterface $dateinscription): static
  100.     {
  101.         $this->dateinscription $dateinscription;
  102.         return $this;
  103.     }
  104.     /**
  105.      * @return Collection<int, Paper>
  106.      */
  107.     public function getPapers(): Collection
  108.     {
  109.         return $this->papers;
  110.     }
  111.     public function addPaper(Paper $paper): static
  112.     {
  113.         if (!$this->papers->contains($paper)) {
  114.             $this->papers->add($paper);
  115.             $paper->setChercheur($this);
  116.         }
  117.         return $this;
  118.     }
  119.     public function removePaper(Paper $paper): static
  120.     {
  121.         if ($this->papers->removeElement($paper)) {
  122.             // set the owning side to null (unless already changed)
  123.             if ($paper->getChercheur() === $this) {
  124.                 $paper->setChercheur(null);
  125.             }
  126.         }
  127.         return $this;
  128.     }
  129.     public function getCountry(): ?string
  130.     {
  131.         return $this->country;
  132.     }
  133.     public function setCountry(?string $country): static
  134.     {
  135.         $this->country $country;
  136.         return $this;
  137.     }
  138.     public function getPhotocov(): ?string
  139.     {
  140.         return $this->photocov;
  141.     }
  142.     public function setPhotocov(?string $photocov): static
  143.     {
  144.         $this->photocov $photocov;
  145.         return $this;
  146.     }
  147.     public function isIscertificate(): ?bool
  148.     {
  149.         return $this->iscertificate;
  150.     }
  151.     public function setIscertificate(?bool $iscertificate): static
  152.     {
  153.         $this->iscertificate $iscertificate;
  154.         return $this;
  155.     }
  156.     
  157.     
  158. }