<?php
namespace App\Entity;
use App\Repository\PublicationsRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PublicationsRepository::class)
*/
class Publications
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $titre;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $link;
/**
* @ORM\Column(type="string", length=255)
*/
private $authors;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $venue;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $citations;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $year;
/**
* @ORM\ManyToMany(targetEntity=Membre::class, mappedBy="publications" )
*/
private $membre;
public function __construct()
{
$this->membre = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(?string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getAuthors(): ?string
{
return $this->authors;
}
public function setAuthors(string $authors): self
{
$this->authors = $authors;
return $this;
}
public function getVenue(): ?string
{
return $this->venue;
}
public function setVenue(?string $venue): self
{
$this->venue = $venue;
return $this;
}
public function getLink(): ?string
{
return $this->link;
}
public function setLink(?string $link): self
{
$this->link = $link;
return $this;
}
public function getCitations(): ?string
{
return $this->citations;
}
public function setCitations(?string $citations): self
{
$this->citations = $citations;
return $this;
}
public function getYear(): ?string
{
return $this->year;
}
public function setYear(?string $year): self
{
$this->year = $year;
return $this;
}
/**
* @return Collection<int, Membre>
*/
public function getMembre(): Collection
{
return $this->Membre;
}
public function addMembre(Membre $membre): self
{
if (!$this->membre->contains($membre)) {
$this->membre[] = $membre;
}
return $this;
}
public function removeMembre(Membre $membre): self
{
$this->membre->removeElement($membre);
return $this;
}
}