<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\StatusRepository")
*/
class Status
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $name;
/**
* @ORM\OneToMany(targetEntity="App\Entity\AdminDonneurOrdre", mappedBy="status")
*/
private $adminDonneurOrdres;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Appariement", mappedBy="status")
*/
private $appariements;
/**
* @ORM\OneToMany(targetEntity="App\Entity\AppelDeMarge", mappedBy="status")
*/
private $appelDeMarges;
/**
* @ORM\OneToMany(targetEntity="App\Entity\PlaceDeMarche", mappedBy="status")
*/
private $placeDeMarches;
/**
* @ORM\OneToMany(targetEntity="App\Entity\SousJacent", mappedBy="status")
*/
private $sousJacents;
/**
* @ORM\OneToMany(targetEntity="App\Entity\TraitementDsDemdDachat", mappedBy="status")
*/
private $traitementDsDemdDachats;
/**
* @ORM\OneToMany(targetEntity="App\Entity\LetterOfIntentToPurchase", mappedBy="status")
*/
private $letterOfIntentToPurchases;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Quotation", mappedBy="status")
*/
private $quotations;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Transaction", mappedBy="status")
*/
private $transactions;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Operation", mappedBy="status")
*/
private $operations;
/**
* @ORM\OneToMany(targetEntity="App\Entity\LeveeDeFond", mappedBy="status")
*/
private $leveeDeFonds;
/**
* @ORM\OneToMany(targetEntity="App\Entity\FraisDeCourtage", mappedBy="status")
*/
private $fraisDeCourtages;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $formulaire;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $description;
/**
* @ORM\OneToMany(targetEntity="App\Entity\DemandeDeCotation", mappedBy="status")
*/
private $demandeDeCotations;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Prospect", mappedBy="statut")
*/
private $prospects;
/**
* @ORM\OneToMany(targetEntity="App\Entity\RequeteDeFinancement", mappedBy="status")
*/
private $requeteDeFinancements;
public function __construct()
{
$this->adminDonneurOrdres = new ArrayCollection();
$this->appariements = new ArrayCollection();
$this->appelDeMarges = new ArrayCollection();
$this->placeDeMarches = new ArrayCollection();
$this->sousJacents = new ArrayCollection();
$this->traitementDsDemdDachats = new ArrayCollection();
$this->letterOfIntentToPurchases = new ArrayCollection();
$this->quotations = new ArrayCollection();
$this->transactions = new ArrayCollection();
$this->operations = new ArrayCollection();
$this->leveeDeFonds = new ArrayCollection();
$this->fraisDeCourtages = new ArrayCollection();
$this->demandeDeCotations = new ArrayCollection();
$this->prospects = new ArrayCollection();
$this->requeteDeFinancements = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
/**
* @return Collection|AdminDonneurOrdre[]
*/
public function getAdminDonneurOrdres(): Collection
{
return $this->adminDonneurOrdres;
}
public function addAdminDonneurOrdre(AdminDonneurOrdre $adminDonneurOrdre): self
{
if (!$this->adminDonneurOrdres->contains($adminDonneurOrdre)) {
$this->adminDonneurOrdres[] = $adminDonneurOrdre;
$adminDonneurOrdre->setStatus($this);
}
return $this;
}
public function removeAdminDonneurOrdre(AdminDonneurOrdre $adminDonneurOrdre): self
{
if ($this->adminDonneurOrdres->contains($adminDonneurOrdre)) {
$this->adminDonneurOrdres->removeElement($adminDonneurOrdre);
// set the owning side to null (unless already changed)
if ($adminDonneurOrdre->getStatus() === $this) {
$adminDonneurOrdre->setStatus(null);
}
}
return $this;
}
public function __toString(): String
{
return $this->name;
}
/**
* @return Collection |RequeteDeFinancement[]
*/
public function getRequeteDeFinancements(): Collection
{
return $this->requeteDeFinancements;
}
public function addRequeteDeFinancement(RequeteDeFinancement $requeteDeFinancement): self{
if (!$this->requeteDeFinancements->contains($requeteDeFinancement)) {
$this->requeteDeFinancements[] = $requeteDeFinancement;
$requeteDeFinancement->setStatus($this);
}
return $this;
}
public function removeRequeteDeFinancement(RequeteDeFinancement $requeteDeFinancement): self{
if ($this->requeteDeFinancements->contains($requeteDeFinancement)) {
$this->requeteDeFinancements->removeElement($requeteDeFinancement);
// set the owning side to null (unless already changed)
if ($requeteDeFinancement->getStatus() === $this) {
$requeteDeFinancement->setStatus(null);
}
}
return $this;
}
/**
* @return Collection|Appariement[]
*/
public function getAppariements(): Collection
{
return $this->appariements;
}
public function addAppariement(Appariement $appariement): self
{
if (!$this->appariements->contains($appariement)) {
$this->appariements[] = $appariement;
$appariement->setStatus($this);
}
return $this;
}
public function removeAppariement(Appariement $appariement): self
{
if ($this->appariements->contains($appariement)) {
$this->appariements->removeElement($appariement);
// set the owning side to null (unless already changed)
if ($appariement->getStatus() === $this) {
$appariement->setStatus(null);
}
}
return $this;
}
/**
* @return Collection|AppelDeMarge[]
*/
public function getAppelDeMarges(): Collection
{
return $this->appelDeMarges;
}
public function addAppelDeMarge(AppelDeMarge $appelDeMarge): self
{
if (!$this->appelDeMarges->contains($appelDeMarge)) {
$this->appelDeMarges[] = $appelDeMarge;
$appelDeMarge->setStatus($this);
}
return $this;
}
public function removeAppelDeMarge(AppelDeMarge $appelDeMarge): self
{
if ($this->appelDeMarges->contains($appelDeMarge)) {
$this->appelDeMarges->removeElement($appelDeMarge);
// set the owning side to null (unless already changed)
if ($appelDeMarge->getStatus() === $this) {
$appelDeMarge->setStatus(null);
}
}
return $this;
}
/**
* @return Collection|PlaceDeMarche[]
*/
public function getPlaceDeMarches(): Collection
{
return $this->placeDeMarches;
}
public function addPlaceDeMarch(PlaceDeMarche $placeDeMarch): self
{
if (!$this->placeDeMarches->contains($placeDeMarch)) {
$this->placeDeMarches[] = $placeDeMarch;
$placeDeMarch->setStatus($this);
}
return $this;
}
public function removePlaceDeMarch(PlaceDeMarche $placeDeMarch): self
{
if ($this->placeDeMarches->contains($placeDeMarch)) {
$this->placeDeMarches->removeElement($placeDeMarch);
// set the owning side to null (unless already changed)
if ($placeDeMarch->getStatus() === $this) {
$placeDeMarch->setStatus(null);
}
}
return $this;
}
/**
* @return Collection|SousJacent[]
*/
public function getSousJacents(): Collection
{
return $this->sousJacents;
}
public function addSousJacent(SousJacent $sousJacent): self
{
if (!$this->sousJacents->contains($sousJacent)) {
$this->sousJacents[] = $sousJacent;
$sousJacent->setStatus($this);
}
return $this;
}
public function removeSousJacent(SousJacent $sousJacent): self
{
if ($this->sousJacents->contains($sousJacent)) {
$this->sousJacents->removeElement($sousJacent);
// set the owning side to null (unless already changed)
if ($sousJacent->getStatus() === $this) {
$sousJacent->setStatus(null);
}
}
return $this;
}
/**
* @return Collection|TraitementDsDemdDachat[]
*/
public function getTraitementDsDemdDachats(): Collection
{
return $this->traitementDsDemdDachats;
}
public function addTraitementDsDemdDachat(TraitementDsDemdDachat $traitementDsDemdDachat): self
{
if (!$this->traitementDsDemdDachats->contains($traitementDsDemdDachat)) {
$this->traitementDsDemdDachats[] = $traitementDsDemdDachat;
$traitementDsDemdDachat->setStatus($this);
}
return $this;
}
public function removeTraitementDsDemdDachat(TraitementDsDemdDachat $traitementDsDemdDachat): self
{
if ($this->traitementDsDemdDachats->contains($traitementDsDemdDachat)) {
$this->traitementDsDemdDachats->removeElement($traitementDsDemdDachat);
// set the owning side to null (unless already changed)
if ($traitementDsDemdDachat->getStatus() === $this) {
$traitementDsDemdDachat->setStatus(null);
}
}
return $this;
}
/**
* @return Collection|LetterOfIntentToPurchase[]
*/
public function getLetterOfIntentToPurchases(): Collection
{
return $this->letterOfIntentToPurchases;
}
public function addLetterOfIntentToPurchase(LetterOfIntentToPurchase $letterOfIntentToPurchase): self
{
if (!$this->letterOfIntentToPurchases->contains($letterOfIntentToPurchase)) {
$this->letterOfIntentToPurchases[] = $letterOfIntentToPurchase;
$letterOfIntentToPurchase->setStatus($this);
}
return $this;
}
public function removeLetterOfIntentToPurchase(LetterOfIntentToPurchase $letterOfIntentToPurchase): self
{
if ($this->letterOfIntentToPurchases->contains($letterOfIntentToPurchase)) {
$this->letterOfIntentToPurchases->removeElement($letterOfIntentToPurchase);
// set the owning side to null (unless already changed)
if ($letterOfIntentToPurchase->getStatus() === $this) {
$letterOfIntentToPurchase->setStatus(null);
}
}
return $this;
}
/**
* @return Collection|Quotation[]
*/
public function getQuotations(): Collection
{
return $this->quotations;
}
public function addQuotation(Quotation $quotation): self
{
if (!$this->quotations->contains($quotation)) {
$this->quotations[] = $quotation;
$quotation->setStatus($this);
}
return $this;
}
public function removeQuotation(Quotation $quotation): self
{
if ($this->quotations->contains($quotation)) {
$this->quotations->removeElement($quotation);
// set the owning side to null (unless already changed)
if ($quotation->getStatus() === $this) {
$quotation->setStatus(null);
}
}
return $this;
}
/**
* @return Collection|Transaction[]
*/
public function getTransactions(): Collection
{
return $this->transactions;
}
public function addTransaction(Transaction $transaction): self
{
if (!$this->transactions->contains($transaction)) {
$this->transactions[] = $transaction;
$transaction->setStatus($this);
}
return $this;
}
public function removeTransaction(Transaction $transaction): self
{
if ($this->transactions->contains($transaction)) {
$this->transactions->removeElement($transaction);
// set the owning side to null (unless already changed)
if ($transaction->getStatus() === $this) {
$transaction->setStatus(null);
}
}
return $this;
}
/**
* @return Collection|Operation[]
*/
public function getOperations(): Collection
{
return $this->operations;
}
public function addOperation(Operation $operation): self
{
if (!$this->operations->contains($operation)) {
$this->operations[] = $operation;
$operation->setStatus($this);
}
return $this;
}
public function removeOperation(Operation $operation): self
{
if ($this->operations->contains($operation)) {
$this->operations->removeElement($operation);
// set the owning side to null (unless already changed)
if ($operation->getStatus() === $this) {
$operation->setStatus(null);
}
}
return $this;
}
/**
* @return Collection|LeveeDeFond[]
*/
public function getLeveeDeFonds(): Collection
{
return $this->leveeDeFonds;
}
public function addLeveeDeFond(LeveeDeFond $leveeDeFond): self
{
if (!$this->leveeDeFonds->contains($leveeDeFond)) {
$this->leveeDeFonds[] = $leveeDeFond;
$leveeDeFond->setStatus($this);
}
return $this;
}
public function removeLeveeDeFond(LeveeDeFond $leveeDeFond): self
{
if ($this->leveeDeFonds->contains($leveeDeFond)) {
$this->leveeDeFonds->removeElement($leveeDeFond);
// set the owning side to null (unless already changed)
if ($leveeDeFond->getStatus() === $this) {
$leveeDeFond->setStatus(null);
}
}
return $this;
}
/**
* @return Collection|FraisDeCourtage[]
*/
public function getFraisDeCourtages(): Collection
{
return $this->fraisDeCourtages;
}
public function addFraisDeCourtage(FraisDeCourtage $fraisDeCourtage): self
{
if (!$this->fraisDeCourtages->contains($fraisDeCourtage)) {
$this->fraisDeCourtages[] = $fraisDeCourtage;
$fraisDeCourtage->setStatus($this);
}
return $this;
}
public function removeFraisDeCourtage(FraisDeCourtage $fraisDeCourtage): self
{
if ($this->fraisDeCourtages->contains($fraisDeCourtage)) {
$this->fraisDeCourtages->removeElement($fraisDeCourtage);
// set the owning side to null (unless already changed)
if ($fraisDeCourtage->getStatus() === $this) {
$fraisDeCourtage->setStatus(null);
}
}
return $this;
}
public function getFormulaire(): ?string
{
return $this->formulaire;
}
public function setFormulaire(?string $formulaire): self
{
$this->formulaire = $formulaire;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
/**
* @return Collection|DemandeDeCotation[]
*/
public function getDemandeDeCotations(): Collection
{
return $this->demandeDeCotations;
}
public function addDemandeDeCotation(DemandeDeCotation $demandeDeCotation): self
{
if (!$this->demandeDeCotations->contains($demandeDeCotation)) {
$this->demandeDeCotations[] = $demandeDeCotation;
$demandeDeCotation->setStatus($this);
}
return $this;
}
public function removeDemandeDeCotation(DemandeDeCotation $demandeDeCotation): self
{
if ($this->demandeDeCotations->contains($demandeDeCotation)) {
$this->demandeDeCotations->removeElement($demandeDeCotation);
// set the owning side to null (unless already changed)
if ($demandeDeCotation->getStatus() === $this) {
$demandeDeCotation->setStatus(null);
}
}
return $this;
}
/**
* @return Collection|Prospect[]
*/
public function getProspects(): Collection
{
return $this->prospects;
}
public function addProspect(Prospect $prospect): self
{
if (!$this->prospects->contains($prospect)) {
$this->prospects[] = $prospect;
$prospect->setStatut($this);
}
return $this;
}
public function removeProspect(Prospect $prospect): self
{
if ($this->prospects->contains($prospect)) {
$this->prospects->removeElement($prospect);
// set the owning side to null (unless already changed)
if ($prospect->getStatut() === $this) {
$prospect->setStatut(null);
}
}
return $this;
}
}