src/Entity/Status.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\Repository\StatusRepository")
  8.  */
  9. class Status
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255, nullable=true)
  19.      */
  20.     private $name;
  21.     /**
  22.      * @ORM\OneToMany(targetEntity="App\Entity\AdminDonneurOrdre", mappedBy="status")
  23.      */
  24.     private $adminDonneurOrdres;
  25.     /**
  26.      * @ORM\OneToMany(targetEntity="App\Entity\Appariement", mappedBy="status")
  27.      */
  28.     private $appariements;
  29.     /**
  30.      * @ORM\OneToMany(targetEntity="App\Entity\AppelDeMarge", mappedBy="status")
  31.      */
  32.     private $appelDeMarges;
  33.     /**
  34.      * @ORM\OneToMany(targetEntity="App\Entity\PlaceDeMarche", mappedBy="status")
  35.      */
  36.     private $placeDeMarches;
  37.     /**
  38.      * @ORM\OneToMany(targetEntity="App\Entity\SousJacent", mappedBy="status")
  39.      */
  40.     private $sousJacents;
  41.     /**
  42.      * @ORM\OneToMany(targetEntity="App\Entity\TraitementDsDemdDachat", mappedBy="status")
  43.      */
  44.     private $traitementDsDemdDachats;
  45.     /**
  46.      * @ORM\OneToMany(targetEntity="App\Entity\LetterOfIntentToPurchase", mappedBy="status")
  47.      */
  48.     private $letterOfIntentToPurchases;
  49.     /**
  50.      * @ORM\OneToMany(targetEntity="App\Entity\Quotation", mappedBy="status")
  51.      */
  52.     private $quotations;
  53.     /**
  54.      * @ORM\OneToMany(targetEntity="App\Entity\Transaction", mappedBy="status")
  55.      */
  56.     private $transactions;
  57.     /**
  58.      * @ORM\OneToMany(targetEntity="App\Entity\Operation", mappedBy="status")
  59.      */
  60.     private $operations;
  61.     /**
  62.      * @ORM\OneToMany(targetEntity="App\Entity\LeveeDeFond", mappedBy="status")
  63.      */
  64.     private $leveeDeFonds;
  65.     /**
  66.      * @ORM\OneToMany(targetEntity="App\Entity\FraisDeCourtage", mappedBy="status")
  67.      */
  68.     private $fraisDeCourtages;
  69.     /**
  70.      * @ORM\Column(type="string", length=255, nullable=true)
  71.      */
  72.     private $formulaire;
  73.     /**
  74.      * @ORM\Column(type="text", nullable=true)
  75.      */
  76.     private $description;
  77.     /**
  78.      * @ORM\OneToMany(targetEntity="App\Entity\DemandeDeCotation", mappedBy="status")
  79.      */
  80.     private $demandeDeCotations;
  81.     /**
  82.      * @ORM\OneToMany(targetEntity="App\Entity\Prospect", mappedBy="statut")
  83.      */
  84.     private $prospects;
  85.     /**
  86.      * @ORM\OneToMany(targetEntity="App\Entity\RequeteDeFinancement", mappedBy="status")
  87.      */
  88.     private $requeteDeFinancements;
  89.     public function __construct()
  90.     {
  91.         $this->adminDonneurOrdres = new ArrayCollection();
  92.         $this->appariements = new ArrayCollection();
  93.         $this->appelDeMarges = new ArrayCollection();
  94.         $this->placeDeMarches = new ArrayCollection();
  95.         $this->sousJacents = new ArrayCollection();
  96.         $this->traitementDsDemdDachats = new ArrayCollection();
  97.         $this->letterOfIntentToPurchases = new ArrayCollection();
  98.         $this->quotations = new ArrayCollection();
  99.         $this->transactions = new ArrayCollection();
  100.         $this->operations = new ArrayCollection();
  101.         $this->leveeDeFonds = new ArrayCollection();
  102.         $this->fraisDeCourtages = new ArrayCollection();
  103.         $this->demandeDeCotations = new ArrayCollection();
  104.         $this->prospects = new ArrayCollection();
  105.         $this->requeteDeFinancements = new ArrayCollection();
  106.     }
  107.     public function getId(): ?int
  108.     {
  109.         return $this->id;
  110.     }
  111.     public function getName(): ?string
  112.     {
  113.         return $this->name;
  114.     }
  115.     public function setName(?string $name): self
  116.     {
  117.         $this->name $name;
  118.         return $this;
  119.     }
  120.     /**
  121.      * @return Collection|AdminDonneurOrdre[]
  122.      */
  123.     public function getAdminDonneurOrdres(): Collection
  124.     {
  125.         return $this->adminDonneurOrdres;
  126.     }
  127.     public function addAdminDonneurOrdre(AdminDonneurOrdre $adminDonneurOrdre): self
  128.     {
  129.         if (!$this->adminDonneurOrdres->contains($adminDonneurOrdre)) {
  130.             $this->adminDonneurOrdres[] = $adminDonneurOrdre;
  131.             $adminDonneurOrdre->setStatus($this);
  132.         }
  133.         return $this;
  134.     }
  135.     public function removeAdminDonneurOrdre(AdminDonneurOrdre $adminDonneurOrdre): self
  136.     {
  137.         if ($this->adminDonneurOrdres->contains($adminDonneurOrdre)) {
  138.             $this->adminDonneurOrdres->removeElement($adminDonneurOrdre);
  139.             // set the owning side to null (unless already changed)
  140.             if ($adminDonneurOrdre->getStatus() === $this) {
  141.                 $adminDonneurOrdre->setStatus(null);
  142.             }
  143.         }
  144.         return $this;
  145.     }
  146.     public function __toString(): String
  147.     {
  148.         return $this->name;
  149.     }
  150.     /**
  151.      * @return Collection |RequeteDeFinancement[]
  152.      */
  153.     public function getRequeteDeFinancements(): Collection
  154.     {
  155.         return $this->requeteDeFinancements;
  156.     }
  157.     public function addRequeteDeFinancement(RequeteDeFinancement $requeteDeFinancement): self{
  158.         if (!$this->requeteDeFinancements->contains($requeteDeFinancement)) {
  159.             $this->requeteDeFinancements[] = $requeteDeFinancement;
  160.             $requeteDeFinancement->setStatus($this);
  161.         }
  162.         return $this;
  163.     }
  164.     public function removeRequeteDeFinancement(RequeteDeFinancement $requeteDeFinancement): self{
  165.         if ($this->requeteDeFinancements->contains($requeteDeFinancement)) {
  166.             $this->requeteDeFinancements->removeElement($requeteDeFinancement);
  167.             // set the owning side to null (unless already changed)
  168.             if ($requeteDeFinancement->getStatus() === $this) {
  169.                 $requeteDeFinancement->setStatus(null);
  170.             }
  171.         }
  172.         return $this;
  173.     }
  174.     /**
  175.      * @return Collection|Appariement[]
  176.      */
  177.     public function getAppariements(): Collection
  178.     {
  179.         return $this->appariements;
  180.     }
  181.     public function addAppariement(Appariement $appariement): self
  182.     {
  183.         if (!$this->appariements->contains($appariement)) {
  184.             $this->appariements[] = $appariement;
  185.             $appariement->setStatus($this);
  186.         }
  187.         return $this;
  188.     }
  189.     public function removeAppariement(Appariement $appariement): self
  190.     {
  191.         if ($this->appariements->contains($appariement)) {
  192.             $this->appariements->removeElement($appariement);
  193.             // set the owning side to null (unless already changed)
  194.             if ($appariement->getStatus() === $this) {
  195.                 $appariement->setStatus(null);
  196.             }
  197.         }
  198.         return $this;
  199.     }
  200.     /**
  201.      * @return Collection|AppelDeMarge[]
  202.      */
  203.     public function getAppelDeMarges(): Collection
  204.     {
  205.         return $this->appelDeMarges;
  206.     }
  207.     public function addAppelDeMarge(AppelDeMarge $appelDeMarge): self
  208.     {
  209.         if (!$this->appelDeMarges->contains($appelDeMarge)) {
  210.             $this->appelDeMarges[] = $appelDeMarge;
  211.             $appelDeMarge->setStatus($this);
  212.         }
  213.         return $this;
  214.     }
  215.     public function removeAppelDeMarge(AppelDeMarge $appelDeMarge): self
  216.     {
  217.         if ($this->appelDeMarges->contains($appelDeMarge)) {
  218.             $this->appelDeMarges->removeElement($appelDeMarge);
  219.             // set the owning side to null (unless already changed)
  220.             if ($appelDeMarge->getStatus() === $this) {
  221.                 $appelDeMarge->setStatus(null);
  222.             }
  223.         }
  224.         return $this;
  225.     }
  226.     /**
  227.      * @return Collection|PlaceDeMarche[]
  228.      */
  229.     public function getPlaceDeMarches(): Collection
  230.     {
  231.         return $this->placeDeMarches;
  232.     }
  233.     public function addPlaceDeMarch(PlaceDeMarche $placeDeMarch): self
  234.     {
  235.         if (!$this->placeDeMarches->contains($placeDeMarch)) {
  236.             $this->placeDeMarches[] = $placeDeMarch;
  237.             $placeDeMarch->setStatus($this);
  238.         }
  239.         return $this;
  240.     }
  241.     public function removePlaceDeMarch(PlaceDeMarche $placeDeMarch): self
  242.     {
  243.         if ($this->placeDeMarches->contains($placeDeMarch)) {
  244.             $this->placeDeMarches->removeElement($placeDeMarch);
  245.             // set the owning side to null (unless already changed)
  246.             if ($placeDeMarch->getStatus() === $this) {
  247.                 $placeDeMarch->setStatus(null);
  248.             }
  249.         }
  250.         return $this;
  251.     }
  252.     /**
  253.      * @return Collection|SousJacent[]
  254.      */
  255.     public function getSousJacents(): Collection
  256.     {
  257.         return $this->sousJacents;
  258.     }
  259.     public function addSousJacent(SousJacent $sousJacent): self
  260.     {
  261.         if (!$this->sousJacents->contains($sousJacent)) {
  262.             $this->sousJacents[] = $sousJacent;
  263.             $sousJacent->setStatus($this);
  264.         }
  265.         return $this;
  266.     }
  267.     public function removeSousJacent(SousJacent $sousJacent): self
  268.     {
  269.         if ($this->sousJacents->contains($sousJacent)) {
  270.             $this->sousJacents->removeElement($sousJacent);
  271.             // set the owning side to null (unless already changed)
  272.             if ($sousJacent->getStatus() === $this) {
  273.                 $sousJacent->setStatus(null);
  274.             }
  275.         }
  276.         return $this;
  277.     }
  278.     /**
  279.      * @return Collection|TraitementDsDemdDachat[]
  280.      */
  281.     public function getTraitementDsDemdDachats(): Collection
  282.     {
  283.         return $this->traitementDsDemdDachats;
  284.     }
  285.     public function addTraitementDsDemdDachat(TraitementDsDemdDachat $traitementDsDemdDachat): self
  286.     {
  287.         if (!$this->traitementDsDemdDachats->contains($traitementDsDemdDachat)) {
  288.             $this->traitementDsDemdDachats[] = $traitementDsDemdDachat;
  289.             $traitementDsDemdDachat->setStatus($this);
  290.         }
  291.         return $this;
  292.     }
  293.     public function removeTraitementDsDemdDachat(TraitementDsDemdDachat $traitementDsDemdDachat): self
  294.     {
  295.         if ($this->traitementDsDemdDachats->contains($traitementDsDemdDachat)) {
  296.             $this->traitementDsDemdDachats->removeElement($traitementDsDemdDachat);
  297.             // set the owning side to null (unless already changed)
  298.             if ($traitementDsDemdDachat->getStatus() === $this) {
  299.                 $traitementDsDemdDachat->setStatus(null);
  300.             }
  301.         }
  302.         return $this;
  303.     }
  304.     /**
  305.      * @return Collection|LetterOfIntentToPurchase[]
  306.      */
  307.     public function getLetterOfIntentToPurchases(): Collection
  308.     {
  309.         return $this->letterOfIntentToPurchases;
  310.     }
  311.     public function addLetterOfIntentToPurchase(LetterOfIntentToPurchase $letterOfIntentToPurchase): self
  312.     {
  313.         if (!$this->letterOfIntentToPurchases->contains($letterOfIntentToPurchase)) {
  314.             $this->letterOfIntentToPurchases[] = $letterOfIntentToPurchase;
  315.             $letterOfIntentToPurchase->setStatus($this);
  316.         }
  317.         return $this;
  318.     }
  319.     public function removeLetterOfIntentToPurchase(LetterOfIntentToPurchase $letterOfIntentToPurchase): self
  320.     {
  321.         if ($this->letterOfIntentToPurchases->contains($letterOfIntentToPurchase)) {
  322.             $this->letterOfIntentToPurchases->removeElement($letterOfIntentToPurchase);
  323.             // set the owning side to null (unless already changed)
  324.             if ($letterOfIntentToPurchase->getStatus() === $this) {
  325.                 $letterOfIntentToPurchase->setStatus(null);
  326.             }
  327.         }
  328.         return $this;
  329.     }
  330.     /**
  331.      * @return Collection|Quotation[]
  332.      */
  333.     public function getQuotations(): Collection
  334.     {
  335.         return $this->quotations;
  336.     }
  337.     public function addQuotation(Quotation $quotation): self
  338.     {
  339.         if (!$this->quotations->contains($quotation)) {
  340.             $this->quotations[] = $quotation;
  341.             $quotation->setStatus($this);
  342.         }
  343.         return $this;
  344.     }
  345.     public function removeQuotation(Quotation $quotation): self
  346.     {
  347.         if ($this->quotations->contains($quotation)) {
  348.             $this->quotations->removeElement($quotation);
  349.             // set the owning side to null (unless already changed)
  350.             if ($quotation->getStatus() === $this) {
  351.                 $quotation->setStatus(null);
  352.             }
  353.         }
  354.         return $this;
  355.     }
  356.     /**
  357.      * @return Collection|Transaction[]
  358.      */
  359.     public function getTransactions(): Collection
  360.     {
  361.         return $this->transactions;
  362.     }
  363.     public function addTransaction(Transaction $transaction): self
  364.     {
  365.         if (!$this->transactions->contains($transaction)) {
  366.             $this->transactions[] = $transaction;
  367.             $transaction->setStatus($this);
  368.         }
  369.         return $this;
  370.     }
  371.     public function removeTransaction(Transaction $transaction): self
  372.     {
  373.         if ($this->transactions->contains($transaction)) {
  374.             $this->transactions->removeElement($transaction);
  375.             // set the owning side to null (unless already changed)
  376.             if ($transaction->getStatus() === $this) {
  377.                 $transaction->setStatus(null);
  378.             }
  379.         }
  380.         return $this;
  381.     }
  382.     /**
  383.      * @return Collection|Operation[]
  384.      */
  385.     public function getOperations(): Collection
  386.     {
  387.         return $this->operations;
  388.     }
  389.     public function addOperation(Operation $operation): self
  390.     {
  391.         if (!$this->operations->contains($operation)) {
  392.             $this->operations[] = $operation;
  393.             $operation->setStatus($this);
  394.         }
  395.         return $this;
  396.     }
  397.     public function removeOperation(Operation $operation): self
  398.     {
  399.         if ($this->operations->contains($operation)) {
  400.             $this->operations->removeElement($operation);
  401.             // set the owning side to null (unless already changed)
  402.             if ($operation->getStatus() === $this) {
  403.                 $operation->setStatus(null);
  404.             }
  405.         }
  406.         return $this;
  407.     }
  408.     /**
  409.      * @return Collection|LeveeDeFond[]
  410.      */
  411.     public function getLeveeDeFonds(): Collection
  412.     {
  413.         return $this->leveeDeFonds;
  414.     }
  415.     public function addLeveeDeFond(LeveeDeFond $leveeDeFond): self
  416.     {
  417.         if (!$this->leveeDeFonds->contains($leveeDeFond)) {
  418.             $this->leveeDeFonds[] = $leveeDeFond;
  419.             $leveeDeFond->setStatus($this);
  420.         }
  421.         return $this;
  422.     }
  423.     public function removeLeveeDeFond(LeveeDeFond $leveeDeFond): self
  424.     {
  425.         if ($this->leveeDeFonds->contains($leveeDeFond)) {
  426.             $this->leveeDeFonds->removeElement($leveeDeFond);
  427.             // set the owning side to null (unless already changed)
  428.             if ($leveeDeFond->getStatus() === $this) {
  429.                 $leveeDeFond->setStatus(null);
  430.             }
  431.         }
  432.         return $this;
  433.     }
  434.     /**
  435.      * @return Collection|FraisDeCourtage[]
  436.      */
  437.     public function getFraisDeCourtages(): Collection
  438.     {
  439.         return $this->fraisDeCourtages;
  440.     }
  441.     public function addFraisDeCourtage(FraisDeCourtage $fraisDeCourtage): self
  442.     {
  443.         if (!$this->fraisDeCourtages->contains($fraisDeCourtage)) {
  444.             $this->fraisDeCourtages[] = $fraisDeCourtage;
  445.             $fraisDeCourtage->setStatus($this);
  446.         }
  447.         return $this;
  448.     }
  449.     public function removeFraisDeCourtage(FraisDeCourtage $fraisDeCourtage): self
  450.     {
  451.         if ($this->fraisDeCourtages->contains($fraisDeCourtage)) {
  452.             $this->fraisDeCourtages->removeElement($fraisDeCourtage);
  453.             // set the owning side to null (unless already changed)
  454.             if ($fraisDeCourtage->getStatus() === $this) {
  455.                 $fraisDeCourtage->setStatus(null);
  456.             }
  457.         }
  458.         return $this;
  459.     }
  460.     public function getFormulaire(): ?string
  461.     {
  462.         return $this->formulaire;
  463.     }
  464.     public function setFormulaire(?string $formulaire): self
  465.     {
  466.         $this->formulaire $formulaire;
  467.         return $this;
  468.     }
  469.     public function getDescription(): ?string
  470.     {
  471.         return $this->description;
  472.     }
  473.     public function setDescription(?string $description): self
  474.     {
  475.         $this->description $description;
  476.         return $this;
  477.     }
  478.     /**
  479.      * @return Collection|DemandeDeCotation[]
  480.      */
  481.     public function getDemandeDeCotations(): Collection
  482.     {
  483.         return $this->demandeDeCotations;
  484.     }
  485.     public function addDemandeDeCotation(DemandeDeCotation $demandeDeCotation): self
  486.     {
  487.         if (!$this->demandeDeCotations->contains($demandeDeCotation)) {
  488.             $this->demandeDeCotations[] = $demandeDeCotation;
  489.             $demandeDeCotation->setStatus($this);
  490.         }
  491.         return $this;
  492.     }
  493.     public function removeDemandeDeCotation(DemandeDeCotation $demandeDeCotation): self
  494.     {
  495.         if ($this->demandeDeCotations->contains($demandeDeCotation)) {
  496.             $this->demandeDeCotations->removeElement($demandeDeCotation);
  497.             // set the owning side to null (unless already changed)
  498.             if ($demandeDeCotation->getStatus() === $this) {
  499.                 $demandeDeCotation->setStatus(null);
  500.             }
  501.         }
  502.         return $this;
  503.     }
  504.     /**
  505.      * @return Collection|Prospect[]
  506.      */
  507.     public function getProspects(): Collection
  508.     {
  509.         return $this->prospects;
  510.     }
  511.     public function addProspect(Prospect $prospect): self
  512.     {
  513.         if (!$this->prospects->contains($prospect)) {
  514.             $this->prospects[] = $prospect;
  515.             $prospect->setStatut($this);
  516.         }
  517.         return $this;
  518.     }
  519.     public function removeProspect(Prospect $prospect): self
  520.     {
  521.         if ($this->prospects->contains($prospect)) {
  522.             $this->prospects->removeElement($prospect);
  523.             // set the owning side to null (unless already changed)
  524.             if ($prospect->getStatut() === $this) {
  525.                 $prospect->setStatut(null);
  526.             }
  527.         }
  528.         return $this;
  529.     }
  530. }