src/Entity/ClientProduct.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ClientProductRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=ClientProductRepository::class)
  9.  */
  10. class ClientProduct
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Client::class, inversedBy="clientProducts")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $client;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="clientProducts")
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $product;
  28.     /**
  29.      * @ORM\Column(type="text", nullable=true)
  30.      */
  31.     private $presentation;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private $logo;
  36.     /**
  37.      * @ORM\Column(type="text", nullable=true)
  38.      */
  39.     private $title;
  40.     /**
  41.      * @ORM\Column(type="datetime", nullable=true)
  42.      */
  43.     private $startAt;
  44.     /**
  45.      * @ORM\Column(type="datetime", nullable=true)
  46.      */
  47.     private $endAt;
  48.     /**
  49.      * @ORM\Column(type="datetime")
  50.      */
  51.     private $createdAt;
  52.     /**
  53.      * @ORM\Column(type="datetime")
  54.      */
  55.     private $modifiedAt;
  56.     /**
  57.      * @ORM\OneToMany(targetEntity=FlashWorkshop::class, mappedBy="clientProduct")
  58.      */
  59.     private $flashWorkshops;
  60.     /**
  61.      * @ORM\Column(type="boolean")
  62.      */
  63.     private $isActive;
  64.     /**
  65.      * @ORM\OneToMany(targetEntity=UserProduct::class, mappedBy="clientProduct")
  66.      */
  67.     private $userProducts;
  68.     /**
  69.      * @ORM\OneToMany(targetEntity=DefiSlide::class, mappedBy="clientProduct")
  70.      */
  71.     private $defiSlides;
  72.     /**
  73.      * @ORM\OneToMany(targetEntity=DefiClientDocument::class, mappedBy="clientProduct")
  74.      */
  75.     private $defiClientDocuments;
  76.     /**
  77.      * @ORM\Column(type="text", nullable=true)
  78.      */
  79.     private $endingPresentation;
  80.     /**
  81.      * @ORM\Column(type="text", nullable=true)
  82.      */
  83.     private $invitationEmailContent;
  84.     /**
  85.      * @ORM\Column(type="boolean", nullable=true)
  86.      */
  87.     private $canInvite;
  88.     /**
  89.      * @ORM\Column(type="boolean", nullable=true)
  90.      */
  91.     private $forcedDisabled;
  92.     /**
  93.      * @ORM\Column(type="boolean", nullable=true)
  94.      */
  95.     private $hasUserLadder;
  96.     /**
  97.      * @ORM\Column(type="boolean", nullable=true)
  98.      */
  99.     private $hasLocationLadder;
  100.     /**
  101.      * @ORM\Column(type="text", nullable=true)
  102.      */
  103.     private $prize;
  104.     /**
  105.      * @ORM\Column(type="text", nullable=true)
  106.      */
  107.     private $baseline;
  108.     private $interval;
  109.     private $firstSlide;
  110.     private $userHasUserProduct;
  111.     /**
  112.      * @ORM\Column(type="text", nullable=true)
  113.      */
  114.     private $description;
  115.     /**
  116.      * @ORM\Column(type="text", nullable=true)
  117.      */
  118.     private $text;
  119.     /**
  120.      * @ORM\OneToMany(targetEntity=DiagQuestion::class, mappedBy="clientProduct")
  121.      */
  122.     private $diagQuestions;
  123.     /**
  124.      * @ORM\Column(type="boolean", nullable=true)
  125.      */
  126.     private $hasSubLocationLadder;
  127.     public function __construct()
  128.     {
  129.         $this->flashWorkshops = new ArrayCollection();
  130.         $this->userProducts = new ArrayCollection();
  131.         $this->defiSlides = new ArrayCollection();
  132.         $this->defiClientDocuments = new ArrayCollection();
  133.         $this->diagQuestions = new ArrayCollection();
  134.     }
  135.     public function getId(): ?int
  136.     {
  137.         return $this->id;
  138.     }
  139.     public function getClient(): ?Client
  140.     {
  141.         return $this->client;
  142.     }
  143.     public function setClient(?Client $client): self
  144.     {
  145.         $this->client $client;
  146.         return $this;
  147.     }
  148.     public function getFirstSlide(): ?DefiSlide
  149.     {
  150.         return $this->firstSlide;
  151.     }
  152.     public function setFirstSlide(?DefiSlide $firstSlide): self
  153.     {
  154.         $this->firstSlide $firstSlide;
  155.         return $this;
  156.     }
  157.     public function getProduct(): ?Product
  158.     {
  159.         return $this->product;
  160.     }
  161.     public function setProduct(?Product $product): self
  162.     {
  163.         $this->product $product;
  164.         return $this;
  165.     }
  166.     public function getPresentation(): ?string
  167.     {
  168.         return $this->presentation;
  169.     }
  170.     public function setPresentation(?string $presentation): self
  171.     {
  172.         $this->presentation $presentation;
  173.         return $this;
  174.     }
  175.     public function getInterval(): ?string
  176.     {
  177.         return $this->interval;
  178.     }
  179.     public function setInterval(string $interval): self
  180.     {
  181.         $this->interval $interval;
  182.         return $this;
  183.     }
  184.     public function getLogo(): ?string
  185.     {
  186.         return $this->logo;
  187.     }
  188.     public function setLogo(string $logo): self
  189.     {
  190.         $this->logo $logo;
  191.         return $this;
  192.     }
  193.     public function getTitle(): ?string
  194.     {
  195.         return $this->title;
  196.     }
  197.     public function setTitle(string $title): self
  198.     {
  199.         $this->title $title;
  200.         return $this;
  201.     }
  202.     public function getStartAt(): ?\DateTimeInterface
  203.     {
  204.         return $this->startAt;
  205.     }
  206.     public function setStartAt(\DateTimeInterface $startAt): self
  207.     {
  208.         $this->startAt $startAt;
  209.         return $this;
  210.     }
  211.     public function getEndAt(): ?\DateTimeInterface
  212.     {
  213.         return $this->endAt;
  214.     }
  215.     public function setEndAt(\DateTimeInterface $endAt): self
  216.     {
  217.         $this->endAt $endAt;
  218.         return $this;
  219.     }
  220.     public function getCreatedAt(): ?\DateTimeInterface
  221.     {
  222.         return $this->createdAt;
  223.     }
  224.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  225.     {
  226.         $this->createdAt $createdAt;
  227.         return $this;
  228.     }
  229.     public function getModifiedAt(): ?\DateTimeInterface
  230.     {
  231.         return $this->modifiedAt;
  232.     }
  233.     public function setModifiedAt(\DateTimeInterface $modifiedAt): self
  234.     {
  235.         $this->modifiedAt $modifiedAt;
  236.         return $this;
  237.     }
  238.     /**
  239.      * @return Collection<int, FlashWorkshop>
  240.      */
  241.     public function getFlashWorkshops(): Collection
  242.     {
  243.         return $this->flashWorkshops;
  244.     }
  245.     public function addFlashWorkshop(FlashWorkshop $flashWorkshop): self
  246.     {
  247.         if (!$this->flashWorkshops->contains($flashWorkshop)) {
  248.             $this->flashWorkshops[] = $flashWorkshop;
  249.             $flashWorkshop->setClientProduct($this);
  250.         }
  251.         return $this;
  252.     }
  253.     public function removeFlashWorkshop(FlashWorkshop $flashWorkshop): self
  254.     {
  255.         if ($this->flashWorkshops->removeElement($flashWorkshop)) {
  256.             // set the owning side to null (unless already changed)
  257.             if ($flashWorkshop->getClientProduct() === $this) {
  258.                 $flashWorkshop->setClientProduct(null);
  259.             }
  260.         }
  261.         return $this;
  262.     }
  263.     public function isIsActive(): ?bool
  264.     {
  265.         return $this->isActive;
  266.     }
  267.     public function setIsActive(bool $isActive): self
  268.     {
  269.         $this->isActive $isActive;
  270.         return $this;
  271.     }
  272.     public function getUserHasUserProduct(): ?bool
  273.     {
  274.         return $this->userHasUserProduct;
  275.     }
  276.     public function setUserHasUserProduct(bool $userHasUserProduct): self
  277.     {
  278.         $this->userHasUserProduct $userHasUserProduct;
  279.         return $this;
  280.     }
  281.     /**
  282.      * @return Collection<int, UserProduct>
  283.      */
  284.     public function getUserProducts(): Collection
  285.     {
  286.         return $this->userProducts;
  287.     }
  288.     public function addUserProduct(UserProduct $userProduct): self
  289.     {
  290.         if (!$this->userProducts->contains($userProduct)) {
  291.             $this->userProducts[] = $userProduct;
  292.             $userProduct->setClientProduct($this);
  293.         }
  294.         return $this;
  295.     }
  296.     public function removeUserProduct(UserProduct $userProduct): self
  297.     {
  298.         if ($this->userProducts->removeElement($userProduct)) {
  299.             // set the owning side to null (unless already changed)
  300.             if ($userProduct->getClientProduct() === $this) {
  301.                 $userProduct->setClientProduct(null);
  302.             }
  303.         }
  304.         return $this;
  305.     }
  306.     /**
  307.      * @return Collection<int, DefiSlide>
  308.      */
  309.     public function getDefiSlides(): Collection
  310.     {
  311.         return $this->defiSlides;
  312.     }
  313.     public function addDefiSlide(DefiSlide $defiSlide): self
  314.     {
  315.         if (!$this->defiSlides->contains($defiSlide)) {
  316.             $this->defiSlides[] = $defiSlide;
  317.             $defiSlide->setClientProduct($this);
  318.         }
  319.         return $this;
  320.     }
  321.     public function removeDefiSlide(DefiSlide $defiSlide): self
  322.     {
  323.         if ($this->defiSlides->removeElement($defiSlide)) {
  324.             // set the owning side to null (unless already changed)
  325.             if ($defiSlide->getClientProduct() === $this) {
  326.                 $defiSlide->setClientProduct(null);
  327.             }
  328.         }
  329.         return $this;
  330.     }
  331.     /**
  332.      * @return Collection<int, DefiClientDocument>
  333.      */
  334.     public function getDefiClientDocuments(): Collection
  335.     {
  336.         return $this->defiClientDocuments;
  337.     }
  338.     public function addDefiClientDocument(DefiClientDocument $defiClientDocument): self
  339.     {
  340.         if (!$this->defiClientDocuments->contains($defiClientDocument)) {
  341.             $this->defiClientDocuments[] = $defiClientDocument;
  342.             $defiClientDocument->setClientProduct($this);
  343.         }
  344.         return $this;
  345.     }
  346.     public function removeDefiClientDocument(DefiClientDocument $defiClientDocument): self
  347.     {
  348.         if ($this->defiClientDocuments->removeElement($defiClientDocument)) {
  349.             // set the owning side to null (unless already changed)
  350.             if ($defiClientDocument->getClientProduct() === $this) {
  351.                 $defiClientDocument->setClientProduct(null);
  352.             }
  353.         }
  354.         return $this;
  355.     }
  356.     public function getEndingPresentation(): ?string
  357.     {
  358.         return $this->endingPresentation;
  359.     }
  360.     public function setEndingPresentation(?string $endingPresentation): self
  361.     {
  362.         $this->endingPresentation $endingPresentation;
  363.         return $this;
  364.     }
  365.     public function getInvitationEmailContent(): ?string
  366.     {
  367.         return $this->invitationEmailContent;
  368.     }
  369.     public function setInvitationEmailContent(?string $invitationEmailContent): self
  370.     {
  371.         $this->invitationEmailContent $invitationEmailContent;
  372.         return $this;
  373.     }
  374.     public function isCanInvite(): ?bool
  375.     {
  376.         return $this->canInvite;
  377.     }
  378.     public function setCanInvite(bool $canInvite): self
  379.     {
  380.         $this->canInvite $canInvite;
  381.         return $this;
  382.     }
  383.     public function isForcedDisabled(): ?bool
  384.     {
  385.         return $this->forcedDisabled;
  386.     }
  387.     public function setForcedDisabled(bool $forcedDisabled): self
  388.     {
  389.         $this->forcedDisabled $forcedDisabled;
  390.         return $this;
  391.     }
  392.     public function isHasUserLadder(): ?bool
  393.     {
  394.         return $this->hasUserLadder;
  395.     }
  396.     public function setHasUserLadder(bool $hasUserLadder): self
  397.     {
  398.         $this->hasUserLadder $hasUserLadder;
  399.         return $this;
  400.     }
  401.     public function isHasLocationLadder(): ?bool
  402.     {
  403.         return $this->hasLocationLadder;
  404.     }
  405.     public function setHasLocationLadder(bool $hasLocationLadder): self
  406.     {
  407.         $this->hasLocationLadder $hasLocationLadder;
  408.         return $this;
  409.     }
  410.     public function getPrize(): ?string
  411.     {
  412.         return $this->prize;
  413.     }
  414.     public function setPrize(?string $prize): self
  415.     {
  416.         $this->prize $prize;
  417.         return $this;
  418.     }
  419.     public function getBaseline(): ?string
  420.     {
  421.         return $this->baseline;
  422.     }
  423.     public function setBaseline(?string $baseline): self
  424.     {
  425.         $this->baseline $baseline;
  426.         return $this;
  427.     }
  428.     public function getDescription(): ?string
  429.     {
  430.         return $this->description;
  431.     }
  432.     public function setDescription(?string $description): self
  433.     {
  434.         $this->description $description;
  435.         return $this;
  436.     }
  437.     public function getText(): ?string
  438.     {
  439.         return $this->text;
  440.     }
  441.     public function setText(?string $text): self
  442.     {
  443.         $this->text $text;
  444.         return $this;
  445.     }
  446.     /**
  447.      * @return Collection<int, DiagQuestion>
  448.      */
  449.     public function getDiagQuestions(): Collection
  450.     {
  451.         return $this->diagQuestions;
  452.     }
  453.     public function addDiagQuestion(DiagQuestion $diagQuestion): self
  454.     {
  455.         if (!$this->diagQuestions->contains($diagQuestion)) {
  456.             $this->diagQuestions[] = $diagQuestion;
  457.             $diagQuestion->setClientProduct($this);
  458.         }
  459.         return $this;
  460.     }
  461.     public function removeDiagQuestion(DiagQuestion $diagQuestion): self
  462.     {
  463.         if ($this->diagQuestions->removeElement($diagQuestion)) {
  464.             // set the owning side to null (unless already changed)
  465.             if ($diagQuestion->getClientProduct() === $this) {
  466.                 $diagQuestion->setClientProduct(null);
  467.             }
  468.         }
  469.         return $this;
  470.     }
  471.     public function isHasSubLocationLadder(): ?bool
  472.     {
  473.         return $this->hasSubLocationLadder;
  474.     }
  475.     public function setHasSubLocationLadder(?bool $hasSubLocationLadder): self
  476.     {
  477.         $this->hasSubLocationLadder $hasSubLocationLadder;
  478.         return $this;
  479.     }
  480. }