src/Entity/Publication.php line 12

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PublicationRepository;
  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(repositoryClassPublicationRepository::class)]
  9. class Publication
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(nullabletrue)]
  16.     private ?int $annee null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $revue null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $titre null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $doi null;
  23.     #[ORM\ManyToOne(inversedBy'publications')]
  24.     private ?StructureRecherche $structure null;
  25.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  26.     private ?\DateTimeInterface $createdAt null;
  27.     #[ORM\OneToMany(mappedBy'publication'targetEntityTag::class)]
  28.     private Collection $tags;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $description null;
  31.     #[ORM\ManyToMany(targetEntityAuteur::class, inversedBy'publications')]
  32.     private Collection $auteur;
  33.     #[ORM\ManyToOne(inversedBy'publications')]
  34.     private ?User $user null;
  35.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  36.     private ?\DateTimeInterface $updatedAt null;
  37.     #[ORM\ManyToOne(inversedBy'publications')]
  38.     private ?Projet $projet null;
  39.     #[ORM\Column(length255nullabletrue)]
  40.     private ?string $lieu_conference null;
  41.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  42.     private ?\DateTimeInterface $date_conference null;
  43.     #[ORM\Column(length255nullabletrue)]
  44.     private ?string $page null;
  45.     #[ORM\Column(length255nullabletrue)]
  46.     private ?string $nom_journal null;
  47.     #[ORM\Column(nullabletrue)]
  48.     private ?int $quartile null;
  49.     #[ORM\Column(length255nullabletrue)]
  50.     private ?string $facteur_impact null;
  51.     #[ORM\Column(length255nullabletrue)]
  52.     private ?string $volume null;
  53.     #[ORM\Column(nullabletrue)]
  54.     private ?int $rang_conference null;
  55.     #[ORM\Column(length255nullabletrue)]
  56.     private ?string $titreLivre null;
  57.     #[ORM\Column(length255nullabletrue)]
  58.     private ?string $titreConfr null;
  59.     #[ORM\Column(length255nullabletrue)]
  60.     private ?string $titreJournal null;
  61.    
  62.     
  63.     public function __construct()
  64.     {
  65.         $this->tags = new ArrayCollection();
  66.         $this->auteur = new ArrayCollection();
  67.     }
  68.     public function __toString(): string
  69.     {
  70.         return $this->titre;
  71.     }
  72.     public function getId(): ?int
  73.     {
  74.         return $this->id;
  75.     }
  76.     public function getAnnee(): ?int
  77.     {
  78.         return $this->annee;
  79.     }
  80.     public function setAnnee(?int $annee): self
  81.     {
  82.         $this->annee $annee;
  83.         return $this;
  84.     }
  85.     public function getRevue(): ?string
  86.     {
  87.         return $this->revue;
  88.     }
  89.     public function setRevue(?string $revue): self
  90.     {
  91.         $this->revue $revue;
  92.         return $this;
  93.     }
  94.     public function getTitre(): ?string
  95.     {
  96.         return $this->titre;
  97.     }
  98.     public function setTitre(?string $titre): self
  99.     {
  100.         $this->titre $titre;
  101.         return $this;
  102.     }
  103.     public function getDoi(): ?string
  104.     {
  105.         return $this->doi;
  106.     }
  107.     public function setDoi(?string $doi): self
  108.     {
  109.         $this->doi $doi;
  110.         return $this;
  111.     }
  112.    
  113.     public function getStructure(): ?StructureRecherche
  114.     {
  115.         return $this->structure;
  116.     }
  117.     public function setStructure(?StructureRecherche $structure): self
  118.     {
  119.         $this->structure $structure;
  120.         return $this;
  121.     }
  122.     public function getCreatedAt(): ?\DateTimeInterface
  123.     {
  124.         return $this->createdAt;
  125.     }
  126.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  127.     {
  128.         $this->createdAt $createdAt;
  129.         return $this;
  130.     }
  131.     /**
  132.      * @return Collection<int, Tag>
  133.      */
  134.     public function getTags(): Collection
  135.     {
  136.         return $this->tags;
  137.     }
  138.     public function addTag(Tag $tag): self
  139.     {
  140.         if (!$this->tags->contains($tag)) {
  141.             $this->tags->add($tag);
  142.             $tag->setPublication($this);
  143.         }
  144.         return $this;
  145.     }
  146.     public function removeTag(Tag $tag): self
  147.     {
  148.         if ($this->tags->removeElement($tag)) {
  149.             // set the owning side to null (unless already changed)
  150.             if ($tag->getPublication() === $this) {
  151.                 $tag->setPublication(null);
  152.             }
  153.         }
  154.         return $this;
  155.     }
  156.     public function getDescription(): ?string
  157.     {
  158.         return $this->description;
  159.     }
  160.     public function setDescription(?string $description): self
  161.     {
  162.         $this->description $description;
  163.         return $this;
  164.     }
  165.     /**
  166.      * @return Collection<int, Auteur>
  167.      */
  168.     public function getAuteur(): Collection
  169.     {
  170.         return $this->auteur;
  171.     }
  172.     public function addAuteur(Auteur $auteur): self
  173.     {
  174.         if (!$this->auteur->contains($auteur)) {
  175.             $this->auteur->add($auteur);
  176.         }
  177.         return $this;
  178.     }
  179.     public function removeAuteur(Auteur $auteur): self
  180.     {
  181.         $this->auteur->removeElement($auteur);
  182.         return $this;
  183.     }
  184.     public function getUser(): ?User
  185.     {
  186.         return $this->user;
  187.     }
  188.     public function setUser(?User $user): self
  189.     {
  190.         $this->user $user;
  191.         return $this;
  192.     }
  193.     public function getUpdatedAt(): ?\DateTimeInterface
  194.     {
  195.         return $this->updatedAt;
  196.     }
  197.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  198.     {
  199.         $this->updatedAt $updatedAt;
  200.         return $this;
  201.     }
  202.     public function getProjet(): ?Projet
  203.     {
  204.         return $this->projet;
  205.     }
  206.     public function setProjet(?Projet $projet): self
  207.     {
  208.         $this->projet $projet;
  209.         return $this;
  210.     }
  211.     public function getLieuConference(): ?string
  212.     {
  213.         return $this->lieu_conference;
  214.     }
  215.     public function setLieuConference(?string $lieu_conference): self
  216.     {
  217.         $this->lieu_conference $lieu_conference;
  218.         return $this;
  219.     }
  220.     public function getDateConference(): ?\DateTimeInterface
  221.     {
  222.         return $this->date_conference;
  223.     }
  224.     public function setDateConference(?\DateTimeInterface $date_conference): self
  225.     {
  226.         $this->date_conference $date_conference;
  227.         return $this;
  228.     }
  229.     public function getPage(): ?string
  230.     {
  231.         return $this->page;
  232.     }
  233.     public function setPage(?string $page): self
  234.     {
  235.         $this->page $page;
  236.         return $this;
  237.     }
  238.     public function getNomJournal(): ?string
  239.     {
  240.         return $this->nom_journal;
  241.     }
  242.     public function setNomJournal(?string $nom_journal): self
  243.     {
  244.         $this->nom_journal $nom_journal;
  245.         return $this;
  246.     }
  247.     public function getQuartile(): ?int
  248.     {
  249.         return $this->quartile;
  250.     }
  251.     public function setQuartile(?int $quartile): self
  252.     {
  253.         $this->quartile $quartile;
  254.         return $this;
  255.     }
  256.     public function getFacteurImpact(): ?string
  257.     {
  258.         return $this->facteur_impact;
  259.     }
  260.     public function setFacteurImpact(?string $facteur_impact): self
  261.     {
  262.         $this->facteur_impact $facteur_impact;
  263.         return $this;
  264.     }
  265.     public function getVolume(): ?string
  266.     {
  267.         return $this->volume;
  268.     }
  269.     public function setVolume(?string $volume): self
  270.     {
  271.         $this->volume $volume;
  272.         return $this;
  273.     }
  274.     public function getRangConference(): ?int
  275.     {
  276.         return $this->rang_conference;
  277.     }
  278.     public function setRangConference(?int $rang_conference): self
  279.     {
  280.         $this->rang_conference $rang_conference;
  281.         return $this;
  282.     }
  283.     public function getTitreLivre(): ?string
  284.     {
  285.         return $this->titreLivre;
  286.     }
  287.     public function setTitreLivre(?string $titreLivre): self
  288.     {
  289.         $this->titreLivre $titreLivre;
  290.         return $this;
  291.     }
  292.     public function getTitreConfr(): ?string
  293.     {
  294.         return $this->titreConfr;
  295.     }
  296.     public function setTitreConfr(?string $titreConfr): self
  297.     {
  298.         $this->titreConfr $titreConfr;
  299.         return $this;
  300.     }
  301.     public function getTitreJournal(): ?string
  302.     {
  303.         return $this->titreJournal;
  304.     }
  305.     public function setTitreJournal(?string $titreJournal): self
  306.     {
  307.         $this->titreJournal $titreJournal;
  308.         return $this;
  309.     }
  310.     
  311.    
  312. }