<?php
namespace App\Entity;
use App\Repository\DateSuppSejoursRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=DateSuppSejoursRepository::class)
*/
class DateSuppSejours
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="date")
*/
private $dated;
/**
* @ORM\Column(type="date")
*/
private $datef;
/**
* @ORM\ManyToOne(targetEntity=Sejour::class, inversedBy="dateSuppSejours")
* @ORM\JoinColumn(nullable=false)
*/
private $sejours;
public function getId(): ?int
{
return $this->id;
}
public function getDated(): ?\DateTimeInterface
{
return $this->dated;
}
public function setDated(\DateTimeInterface $dated): self
{
$this->dated = $dated;
return $this;
}
public function getDatef(): ?\DateTimeInterface
{
return $this->datef;
}
public function setDatef(\DateTimeInterface $datef): self
{
$this->datef = $datef;
return $this;
}
public function getSejours(): ?Sejour
{
return $this->sejours;
}
public function setSejours(?Sejour $sejours): self
{
$this->sejours = $sejours;
return $this;
}
}