<?php
namespace App\Entity;
use App\Repository\SouscroisierepriceRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=SouscroisierepriceRepository::class)
*/
class Souscroisiereprice
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $dated;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $datef;
/**
* @ORM\ManyToOne(targetEntity=Souscroisiere::class, inversedBy="souscroisiereprices", cascade={"persist"})
*/
private $souscroisiere;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $pack;
/**
* @ORM\OneToMany(targetEntity=Souscroisierepriceroom::class, mappedBy="souscroisiereprice", cascade={"persist"})
*/
private $souscroisierepricerooms;
public function __construct()
{
$this->souscroisierepricerooms = new ArrayCollection();
}
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 getSouscroisiere(): ?Souscroisiere
{
return $this->souscroisiere;
}
public function setSouscroisiere(?Souscroisiere $souscroisiere): self
{
$this->souscroisiere = $souscroisiere;
return $this;
}
public function getPack(): ?string
{
return $this->pack;
}
public function setPack(?string $pack): self
{
$this->pack = $pack;
return $this;
}
/**
* @return Collection<int, Souscroisierepriceroom>
*/
public function getSouscroisierepricerooms(): Collection
{
return $this->souscroisierepricerooms;
}
public function addSouscroisierepriceroom(Souscroisierepriceroom $souscroisierepriceroom): self
{
if (!$this->souscroisierepricerooms->contains($souscroisierepriceroom)) {
$this->souscroisierepricerooms[] = $souscroisierepriceroom;
$souscroisierepriceroom->setSouscroisiereprice($this);
}
return $this;
}
public function removeSouscroisierepriceroom(Souscroisierepriceroom $souscroisierepriceroom): self
{
if ($this->souscroisierepricerooms->removeElement($souscroisierepriceroom)) {
// set the owning side to null (unless already changed)
if ($souscroisierepriceroom->getSouscroisiereprice() === $this) {
$souscroisierepriceroom->setSouscroisiereprice(null);
}
}
return $this;
}
}