<?phpnamespace App\Entity;use App\Repository\UvemargementheadRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=UvemargementheadRepository::class) */class Uvemargementhead{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Session::class, inversedBy="uvemargementheads") * @ORM\JoinColumn(nullable=false) */ private $session; /** * @ORM\Column(type="string") */ private $startdate; /** * @ORM\Column(type="string") */ private $enddate; /** * @ORM\OneToMany(targetEntity=Uvemargement::class, mappedBy="uvemargementhead") */ private $uvemargement; public function __construct() { $this->uvemargement = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getSession(): ?Session { return $this->session; } public function setSession(?Session $session): self { $this->session = $session; return $this; } public function getStartdate(): ?String { return $this->startdate; } public function setStartdate(String $startdate): self { $this->startdate = $startdate; return $this; } public function getEnddate(): ?String { return $this->enddate; } public function setEnddate(String $enddate): self { $this->enddate = $enddate; return $this; } /** * @return Collection<int, Uvemargement> */ public function getUvemargement(): Collection { return $this->uvemargement; } public function addUvemargement(Uvemargement $uvemargement): self { if (!$this->uvemargement->contains($uvemargement)) { $this->uvemargement[] = $uvemargement; $uvemargement->setUvemargementhead($this); } return $this; } public function removeUvemargement(Uvemargement $uvemargement): self { if ($this->uvemargement->removeElement($uvemargement)) { // set the owning side to null (unless already changed) if ($uvemargement->getUvemargementhead() === $this) { $uvemargement->setUvemargementhead(null); } } return $this; }}