src/Entity/Souscroisiereprice.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SouscroisierepriceRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=SouscroisierepriceRepository::class)
  9.  */
  10. class Souscroisiereprice
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="date", nullable=true)
  20.      */
  21.     private $dated;
  22.     /**
  23.      * @ORM\Column(type="date", nullable=true)
  24.      */
  25.     private $datef;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity=Souscroisiere::class, inversedBy="souscroisiereprices", cascade={"persist"})
  28.      */
  29.     private $souscroisiere;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $pack;
  34.     /**
  35.      * @ORM\OneToMany(targetEntity=Souscroisierepriceroom::class, mappedBy="souscroisiereprice", cascade={"persist"})
  36.      */
  37.     private $souscroisierepricerooms;
  38.     public function __construct()
  39.     {
  40.         $this->souscroisierepricerooms = new ArrayCollection();
  41.     }
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getDated(): ?\DateTimeInterface
  47.     {
  48.         return $this->dated;
  49.     }
  50.     public function setDated(?\DateTimeInterface $dated): self
  51.     {
  52.         $this->dated $dated;
  53.         return $this;
  54.     }
  55.     public function getDatef(): ?\DateTimeInterface
  56.     {
  57.         return $this->datef;
  58.     }
  59.     public function setDatef(?\DateTimeInterface $datef): self
  60.     {
  61.         $this->datef $datef;
  62.         return $this;
  63.     }
  64.     public function getSouscroisiere(): ?Souscroisiere
  65.     {
  66.         return $this->souscroisiere;
  67.     }
  68.     public function setSouscroisiere(?Souscroisiere $souscroisiere): self
  69.     {
  70.         $this->souscroisiere $souscroisiere;
  71.         return $this;
  72.     }
  73.     public function getPack(): ?string
  74.     {
  75.         return $this->pack;
  76.     }
  77.     public function setPack(?string $pack): self
  78.     {
  79.         $this->pack $pack;
  80.         return $this;
  81.     }
  82.     /**
  83.      * @return Collection<int, Souscroisierepriceroom>
  84.      */
  85.     public function getSouscroisierepricerooms(): Collection
  86.     {
  87.         return $this->souscroisierepricerooms;
  88.     }
  89.     public function addSouscroisierepriceroom(Souscroisierepriceroom $souscroisierepriceroom): self
  90.     {
  91.         if (!$this->souscroisierepricerooms->contains($souscroisierepriceroom)) {
  92.             $this->souscroisierepricerooms[] = $souscroisierepriceroom;
  93.             $souscroisierepriceroom->setSouscroisiereprice($this);
  94.         }
  95.         return $this;
  96.     }
  97.     public function removeSouscroisierepriceroom(Souscroisierepriceroom $souscroisierepriceroom): self
  98.     {
  99.         if ($this->souscroisierepricerooms->removeElement($souscroisierepriceroom)) {
  100.             // set the owning side to null (unless already changed)
  101.             if ($souscroisierepriceroom->getSouscroisiereprice() === $this) {
  102.                 $souscroisierepriceroom->setSouscroisiereprice(null);
  103.             }
  104.         }
  105.         return $this;
  106.     }
  107. }