src/Entity/PromoParents.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\PromoParentsRepository")
  6.  */
  7. class PromoParents
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\ManyToOne(targetEntity="App\Entity\Promotions", inversedBy="promoParents")
  17.      */
  18.     private $promotion;
  19.     /**
  20.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="promoParents")
  21.      */
  22.     private $parent;
  23.     /**
  24.      * @ORM\Column(type="datetime", nullable=true)
  25.      */
  26.     private $dateCreation;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getPromotion(): ?Promotions
  32.     {
  33.         return $this->promotion;
  34.     }
  35.     public function setPromotion(?Promotions $promotion): self
  36.     {
  37.         $this->promotion $promotion;
  38.         return $this;
  39.     }
  40.     public function getParent(): ?User
  41.     {
  42.         return $this->parent;
  43.     }
  44.     public function setParent(?User $parent): self
  45.     {
  46.         $this->parent $parent;
  47.         return $this;
  48.     }
  49.     public function getDateCreation(): ?\DateTimeInterface
  50.     {
  51.         return $this->dateCreation;
  52.     }
  53.     public function setDateCreation(?\DateTimeInterface $dateCreation): self
  54.     {
  55.         $this->dateCreation $dateCreation;
  56.         return $this;
  57.     }
  58. }