src/Entity/ProgrammeContenaire.php line 14

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. use Symfony\Component\Validator\Constraints as Assert;
  7. /**
  8.  * @ORM\Entity(repositoryClass="App\Repository\ProgrammeContenaireRepository")
  9.  */
  10. class ProgrammeContenaire
  11. {
  12.     /**
  13.      * @ORM\Id()
  14.      * @ORM\GeneratedValue()
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity="App\Entity\Contenaire", inversedBy="programmeContenaires")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $IdCt;
  23.     /**
  24.      * @ORM\Column(type="date")
  25.      */
  26.     private $DateChargement;
  27.     /**
  28.      * @ORM\Column(type="date")
  29.      */
  30.     private $DateDepart;
  31.     /**
  32.      * @ORM\Column(type="date")
  33.      */
  34.     private $DateArriver;
  35.     /**
  36.      * @ORM\Column(type="date")
  37.      */
  38.     private $DateOperation;
  39.     /**
  40.      * @ORM\Column(type="string", length=255, nullable=true)
  41.      */
  42.     private $NomBateau;
  43.     /**
  44.      * @ORM\Column(type="integer")
  45.      */
  46.     private $IdAg;
  47.     /**
  48.      * @ORM\Column(type="boolean")
  49.      */
  50.     private $Flag;
  51.     /**
  52.      * @ORM\Column(type="string", length=255)
  53.      */
  54.     private $NumeroContenaire;
  55.     /**
  56.      * @ORM\OneToMany(targetEntity="App\Entity\SuiviContenaire", mappedBy="idCtPr", orphanRemoval=true)
  57.      */
  58.     private $suiviContenaires;
  59.     /**
  60.      * @ORM\Column(type="string", length=255, nullable=true)
  61.      */
  62.     private $transporteur;
  63.     /**
  64.      * @ORM\ManyToOne(targetEntity="App\Entity\Ville")
  65.      * @ORM\JoinColumn(nullable=false)
  66.      */
  67.     private $IdVille;
  68.     /**
  69.      * @ORM\OneToMany(targetEntity="App\Entity\DepensesContenaire", mappedBy="idCmd", orphanRemoval=true)
  70.      */
  71.     private $depensesContenaires;
  72.     /**
  73.      * @ORM\Column(type="string", length=2)
  74.      */
  75.     private $CompletFlag;
  76.     /**
  77.      * @ORM\OneToMany(targetEntity="App\Entity\Declarant", mappedBy="idPrCt")
  78.      */
  79.     private $declarants;
  80.     /**
  81.      * @ORM\Column(type="string", length=255, nullable=true)
  82.      */
  83.     private $ProprietaireConteneur;
  84.     /**
  85.      * @ORM\Column(type="string", length=255, nullable=true)
  86.      */
  87.     private $destination;
  88.     /**
  89.      * @ORM\OneToMany(targetEntity="App\Entity\Commande", mappedBy="IdCtPr")
  90.      */
  91.     private $commandes;
  92.     /**
  93.      * @ORM\Column(type="boolean")
  94.      */
  95.     private $validation;
  96.     /**
  97.      * @ORM\Column(type="integer")
  98.      * @Assert\Type(type="integer", message="le champs entier")
  99.      */
  100.     private $DepensesPrevue;
  101.     private $facturePayer;
  102.     private $factureAccompte;
  103.     private $factureNonPayer;
  104.     private $facturePayerCompassation;
  105.     private $factureHors;
  106.     private $factureNull;
  107.     private $factureModifier;
  108.     private $MontantFacturePayerBanque;
  109.     private $MontantFacturePayerCash;
  110.     private $MontantFacturePayerAvance;
  111.     private $MontantFacturePayerReduction;
  112.     private $MontantFacturePayerCompassation;
  113.     private $MontantTotalAPayer;
  114.     private $TotalAPaiyerVolume;
  115.     private $MontantTotalAutreFraisPayer;
  116.     private $MontantTotalFacturePayer;
  117.     private $MontantTotalBalanceFacture;
  118.     private $MontantTotalFactureNulle;
  119.     private $MontantTotalDepensesReel;
  120.     private $TotalCBM;
  121.     private $TotalTONNE;
  122.     private $TotalCOLIS;
  123.     private $lieu;
  124.     private $declarant;
  125.     /**
  126.      * @ORM\OneToMany(targetEntity="App\Entity\RemarqueConteneur", mappedBy="programmeConteneur")
  127.      */
  128.     private $remarqueConteneurs;
  129.     private $lieuDate;
  130.     /**
  131.      * @ORM\Column(type="string", length=1000, nullable=true)
  132.      */
  133.     private $remarqueConteneur;
  134.     /**
  135.      * @ORM\Column(type="boolean")
  136.      */
  137.     private $isMco;
  138.     /**
  139.      * @ORM\Column(type="boolean", nullable=true)
  140.      */
  141.     private $isRapport;
  142.     /**
  143.      * @ORM\Column(type="datetime", nullable=true)
  144.      */
  145.     private $dateRapportAt;
  146.     /**
  147.      * @ORM\Column(type="boolean")
  148.      */
  149.     private $isClients;
  150.     /**
  151.      * @ORM\ManyToOne(targetEntity=Ville::class, inversedBy="programmeContenaires")
  152.      */
  153.     private $villeInitiale;
  154.     /**
  155.      * @ORM\OneToMany(targetEntity=Notification::class, mappedBy="prct")
  156.      */
  157.     private $notifications;
  158.     /**
  159.      * @ORM\OneToMany(targetEntity=TmpConteneurReception::class, mappedBy="programme", orphanRemoval=true)
  160.      */
  161.     private $tmpConteneurReceptions;
  162.     /**
  163.      * @ORM\Column(type="string", length=10)
  164.      */
  165.     private $rapport;
  166.     public function __construct()
  167.     {
  168.         $this->DateOperation = new \DateTime();
  169.         $this->Flag false;
  170.         $this->isClients false;
  171.         $this->suiviContenaires = new ArrayCollection();
  172.         $this->villes = new ArrayCollection();
  173.         $this->depensesContenaires = new ArrayCollection();
  174.         $this->CompletFlag '0';
  175.         $this->declarants = new ArrayCollection();
  176.         $this->remarqueConteneurs = new ArrayCollection();
  177.         $this->notifications = new ArrayCollection();
  178.         $this->tmpConteneurReceptions = new ArrayCollection();
  179.     }
  180.     public function getId(): ?int
  181.     {
  182.         return $this->id;
  183.     }
  184.     public function getIdCt(): ?Contenaire
  185.     {
  186.         return $this->IdCt;
  187.     }
  188.     public function setIdCt(?Contenaire $IdCt): self
  189.     {
  190.         $this->IdCt $IdCt;
  191.         return $this;
  192.     }
  193.     public function getDateChargement(): ?\DateTimeInterface
  194.     {
  195.         return $this->DateChargement;
  196.     }
  197.     public function setDateChargement(\DateTimeInterface $DateChargement): self
  198.     {
  199.         $this->DateChargement $DateChargement;
  200.         return $this;
  201.     }
  202.     public function getDateDepart(): ?\DateTimeInterface
  203.     {
  204.         return $this->DateDepart;
  205.     }
  206.     public function setDateDepart(\DateTimeInterface $DateDepart): self
  207.     {
  208.         $this->DateDepart $DateDepart;
  209.         return $this;
  210.     }
  211.     public function getDateArriver(): ?\DateTimeInterface
  212.     {
  213.         return $this->DateArriver;
  214.     }
  215.     public function setDateArriver(\DateTimeInterface $DateArriver): self
  216.     {
  217.         $this->DateArriver $DateArriver;
  218.         return $this;
  219.     }
  220.     public function getDateOperation(): ?\DateTimeInterface
  221.     {
  222.         return $this->DateOperation;
  223.     }
  224.     public function setDateOperation(\DateTimeInterface $DateOperation): self
  225.     {
  226.         $this->DateOperation $DateOperation;
  227.         return $this;
  228.     }
  229.     public function getNomBateau(): ?string
  230.     {
  231.         return $this->NomBateau;
  232.     }
  233.     public function setNomBateau(?string $NomBateau): self
  234.     {
  235.         $this->NomBateau $NomBateau;
  236.         return $this;
  237.     }
  238.     public function getIdAg(): ?int
  239.     {
  240.         return $this->IdAg;
  241.     }
  242.     public function setIdAg(int $IdAg): self
  243.     {
  244.         $this->IdAg $IdAg;
  245.         return $this;
  246.     }
  247.     public function getFlag(): ?bool
  248.     {
  249.         return $this->Flag;
  250.     }
  251.     public function setFlag(bool $Flag): self
  252.     {
  253.         $this->Flag $Flag;
  254.         return $this;
  255.     }
  256.     public function getNumeroContenaire(): ?string
  257.     {
  258.         return $this->NumeroContenaire;
  259.     }
  260.     public function setNumeroContenaire(string $NumeroContenaire): self
  261.     {
  262.         $this->NumeroContenaire $NumeroContenaire;
  263.         return $this;
  264.     }
  265.     /**
  266.      * @return Collection|SuiviContenaire[]
  267.      */
  268.     public function getSuiviContenaires(): Collection
  269.     {
  270.         return $this->suiviContenaires;
  271.     }
  272.     public function addSuiviContenaire(SuiviContenaire $suiviContenaire): self
  273.     {
  274.         if (!$this->suiviContenaires->contains($suiviContenaire)) {
  275.             $this->suiviContenaires[] = $suiviContenaire;
  276.             $suiviContenaire->setIdCtPr($this);
  277.         }
  278.         return $this;
  279.     }
  280.     public function removeSuiviContenaire(SuiviContenaire $suiviContenaire): self
  281.     {
  282.         if ($this->suiviContenaires->contains($suiviContenaire)) {
  283.             $this->suiviContenaires->removeElement($suiviContenaire);
  284.             // set the owning side to null (unless already changed)
  285.             if ($suiviContenaire->getIdCtPr() === $this) {
  286.                 $suiviContenaire->setIdCtPr(null);
  287.             }
  288.         }
  289.         return $this;
  290.     }
  291.     public function __toString(){
  292.         // to show the name of the Category in the select
  293.         return (string) $this->IdCt->getNomContenaire();
  294.         // to show the id of the Category in the select
  295.         // return $this->id;
  296.     }
  297.     public function getTransporteur(): ?string
  298.     {
  299.         return $this->transporteur;
  300.     }
  301.     public function setTransporteur(string $transporteur): self
  302.     {
  303.         $this->transporteur $transporteur;
  304.         return $this;
  305.     }
  306.     public function getIdVille(): ?Ville
  307.     {
  308.         return $this->IdVille;
  309.     }
  310.     public function setIdVille(?Ville $IdVille): self
  311.     {
  312.         $this->IdVille $IdVille;
  313.         return $this;
  314.     }
  315.     /**
  316.      * @return Collection|DepensesContenaire[]
  317.      */
  318.     public function getDepensesContenaires(): Collection
  319.     {
  320.         return $this->depensesContenaires;
  321.     }
  322.     public function addDepensesContenaire(DepensesContenaire $depensesContenaire): self
  323.     {
  324.         if (!$this->depensesContenaires->contains($depensesContenaire)) {
  325.             $this->depensesContenaires[] = $depensesContenaire;
  326.             $depensesContenaire->setIdCmd($this);
  327.         }
  328.         return $this;
  329.     }
  330.     public function removeDepensesContenaire(DepensesContenaire $depensesContenaire): self
  331.     {
  332.         if ($this->depensesContenaires->contains($depensesContenaire)) {
  333.             $this->depensesContenaires->removeElement($depensesContenaire);
  334.             // set the owning side to null (unless already changed)
  335.             if ($depensesContenaire->getIdCmd() === $this) {
  336.                 $depensesContenaire->setIdCmd(null);
  337.             }
  338.         }
  339.         return $this;
  340.     }
  341.     public function getCompletFlag(): ?string
  342.     {
  343.         return $this->CompletFlag;
  344.     }
  345.     public function setCompletFlag(string $CompletFlag): self
  346.     {
  347.         $this->CompletFlag $CompletFlag;
  348.         return $this;
  349.     }
  350.     /**
  351.      * @return Collection|Declarant[]
  352.      */
  353.     public function getDeclarants(): Collection
  354.     {
  355.         return $this->declarants;
  356.     }
  357.     public function addDeclarant(Declarant $declarant): self
  358.     {
  359.         if (!$this->declarants->contains($declarant)) {
  360.             $this->declarants[] = $declarant;
  361.             $declarant->setIdPrCt($this);
  362.         }
  363.         return $this;
  364.     }
  365.     public function removeDeclarant(Declarant $declarant): self
  366.     {
  367.         if ($this->declarants->contains($declarant)) {
  368.             $this->declarants->removeElement($declarant);
  369.             // set the owning side to null (unless already changed)
  370.             if ($declarant->getIdPrCt() === $this) {
  371.                 $declarant->setIdPrCt(null);
  372.             }
  373.         }
  374.         return $this;
  375.     }
  376.     public function getProprietaireConteneur(): ?string
  377.     {
  378.         return $this->ProprietaireConteneur;
  379.     }
  380.     public function setProprietaireConteneur(?string $ProprietaireConteneur): self
  381.     {
  382.         $this->ProprietaireConteneur $ProprietaireConteneur;
  383.         return $this;
  384.     }
  385.     public function getDestination(): ?string
  386.     {
  387.         return $this->destination;
  388.     }
  389.     public function setDestination(string $destination): self
  390.     {
  391.         $this->destination $destination;
  392.         return $this;
  393.     }
  394.     /**
  395.      * @return Collection|Paiement[]
  396.      */
  397.     public function getCommandes(): Collection
  398.     {
  399.         return $this->commandes;
  400.     }
  401.     public function addCommande(Commande $commandes): self
  402.     {
  403.         if (!$this->commandes->contains($commandes)) {
  404.             $this->commandes[] = $commandes;
  405.             $commandes->setIdCtPr($this);
  406.         }
  407.         return $this;
  408.     }
  409.     public function removeCommande(Commande $commandes): self
  410.     {
  411.         if ($this->commandes->contains($commandes)) {
  412.             $this->commandes->removeElement($commandes);
  413.             // set the owning side to null (unless already changed)
  414.             if ($commandes->getIdCtPr() === $this) {
  415.                 $commandes->setIdCtPr(null);
  416.             }
  417.         }
  418.         return $this;
  419.     }
  420.     public function getValidation(): ?bool
  421.     {
  422.         return $this->validation;
  423.     }
  424.     public function setValidation(bool $validation): self
  425.     {
  426.         $this->validation $validation;
  427.         return $this;
  428.     }
  429.     public function getDepensesPrevue(): ?int
  430.     {
  431.         return $this->DepensesPrevue;
  432.     }
  433.     public function setDepensesPrevue(int $DepensesPrevue): self
  434.     {
  435.         $this->DepensesPrevue $DepensesPrevue;
  436.         return $this;
  437.     }
  438.     /**
  439.      * @return mixed
  440.      */
  441.     public function getFacturePayer()
  442.     {
  443.         $total 0;
  444.         foreach($this->getCommandes() as $v){
  445.           if($v->getBalance() < 1){
  446.               $total++;
  447.           }
  448.         }
  449.         return $this->facturePayer $total;
  450.     }
  451.     /**
  452.      * @return mixed
  453.      */
  454.     public function getFactureAccompte()
  455.     {
  456.         $total 0;
  457.         foreach($this->getCommandes() as $v){
  458.             if($v->getBalance() < $v->getTotalAPaiyer() && $v->getBalance() > 0){
  459.                 $total++;
  460.             }
  461.         }
  462.         return $this->factureAccompte $total;
  463.     }
  464.     /**
  465.      * @return mixed
  466.      */
  467.     public function getFactureNonPayer()
  468.     {
  469.         $total 0;
  470.         foreach($this->getCommandes() as $v){
  471.             if($v->getNetDejaPaie() < &&  $v->getTotalAPaiyer() > 0){
  472.                 $total++;
  473.             }
  474.         }
  475.         return $this->factureNonPayer $total;
  476.     }
  477.     /**
  478.      * @return mixed
  479.      */
  480.     public function getFacturePayerCompassation()
  481.     {
  482.         $total 0;
  483.         foreach($this->getCommandes() as $v){
  484.             foreach($v->getReduction() as $k){
  485.                 if($k->getFlagCompassation() == 1){
  486.                     $total++;
  487.                     break;
  488.                 }
  489.             }
  490.         }
  491.         return $this->facturePayerCompassation $total;
  492.     }
  493.     /**
  494.      * @return mixed
  495.      */
  496.     public function getFactureHors()
  497.     {
  498.         $total 0;
  499.         foreach($this->getCommandes() as $v){
  500.             if($v->getFacturehors() == true){
  501.                 $total++;
  502.             }
  503.         }
  504.         return $this->factureHors $total;
  505.     }
  506.     /**
  507.      * @return mixed
  508.      */
  509.     public function getFactureNull()
  510.     {
  511.         $total 0;
  512.         foreach($this->getCommandes() as $v){
  513.             if($v->getFactureMarchandiseAbscent() == true){
  514.                 $total++;
  515.             }
  516.         }
  517.         return $this->factureNull $total;
  518.     }
  519.     /**
  520.      * @return mixed
  521.      */
  522.     public function getFactureModifier()
  523.     {
  524.         $total 0;
  525.         foreach($this->getCommandes() as $v){
  526.             if($v->getModification() == true){
  527.                 $total++;
  528.             }
  529.         }
  530.         return $this->factureModifier $total;
  531.     }
  532.     /**
  533.      * @return mixed
  534.      */
  535.     public function getMontantFacturePayerBanque()
  536.     {
  537.         $total 0;
  538.         foreach($this->getCommandes() as $v){
  539.             foreach($v->getReduction() as $k){
  540.                 if($k->getFlagCompassation() == 2){
  541.                     $total $total $k->getMontant();
  542.                     break;
  543.                 }
  544.             }
  545.         }
  546.         return $this->MontantFacturePayerBanque $total;
  547.     }
  548.     /**
  549.      * @return mixed
  550.      */
  551.     public function getMontantFacturePayerCash()
  552.     {
  553.         $total 0;
  554.         foreach($this->getCommandes() as $v){
  555.             foreach($v->getPaiements() as $k){
  556.                 if($k->getFlagEnAvance() == false){
  557.                     $total $total $k->getMontant();
  558.                    // break;
  559.                 }
  560.             }
  561.         }
  562.         return $this->MontantFacturePayerCash $total;
  563.     }
  564.     /**
  565.      * @return mixed
  566.      */
  567.     public function getMontantFacturePayerAvance()
  568.     {
  569.         $total 0;
  570.         foreach($this->getCommandes() as $v){
  571.             foreach($v->getPaiements() as $k){
  572.                 if($k->getFlagEnAvance() == true){
  573.                     $total $total $k->getMontant();
  574.                     break;
  575.                 }
  576.             }
  577.         }
  578.         return $this->MontantFacturePayerAvance $total;
  579.     }
  580.     /**
  581.      * @return mixed
  582.      */
  583.     public function getMontantFacturePayerReduction()
  584.     {
  585.         $total 0;
  586.         foreach($this->getCommandes() as $v){
  587.             foreach($v->getReduction() as $k){
  588.                 if($k->getFlagCompassation() == 0){
  589.                     $total $total $k->getMontant();
  590.                     break;
  591.                 }
  592.             }
  593.         }
  594.         return $this->MontantFacturePayerReduction $total;
  595.     }
  596.     /**
  597.      * @return mixed
  598.      */
  599.     public function getMontantFacturePayerCompassation()
  600.     {
  601.         $total 0;
  602.         foreach($this->getCommandes() as $v){
  603.             foreach($v->getReduction() as $k){
  604.                 if($k->getFlagCompassation() == 1){
  605.                     $total $total $k->getMontant();
  606.                     break;
  607.                 }
  608.             }
  609.         }
  610.         return $this->MontantFacturePayerCompassation $total;
  611.     }
  612.     /**
  613.      * @return mixed
  614.      */
  615.     public function getMontantTotalFacturePayer()
  616.     {
  617.         return $this->MontantTotalFacturePayer $this->getMontantFacturePayerCash() + $this->getMontantFacturePayerAvance() + $this->getMontantFacturePayerBanque() + $this->getMontantFacturePayerCompassation() + $this->getMontantFacturePayerReduction();
  618.     }
  619.     /**
  620.      * @return mixed
  621.      */
  622.     public function getMontantTotalBalanceFacture()
  623.     {
  624.         return $this->MontantTotalBalanceFacture $this->getMontantTotalAPayer() - $this->getMontantTotalFactureNulle() - $this->getMontantTotalFacturePayer();
  625.     }
  626.     /**
  627.      * @return mixed
  628.      */
  629.     public function getMontantTotalAPayer()
  630.     {
  631.         $total 0;
  632.         foreach($this->getCommandes() as $v){
  633.             $total $total $v->getTotalAPaiyer();
  634.         }
  635.         return $this->MontantTotalAPayer $total;
  636.     }
  637.     /**
  638.      * @return mixed
  639.      */
  640.     public function getMontantTotalDepensesReel()
  641.     {
  642.         $total 0;
  643.         foreach($this->getDepensesContenaires() as $v){
  644.             $total $total $v->getMontant();
  645.         }
  646.         return $this->MontantTotalDepensesReel $total;
  647.     }
  648.     /**
  649.      * @return mixed
  650.      */
  651.     public function getMontantTotalFactureNulle()
  652.     {
  653.         $total 0;
  654.         foreach($this->getCommandes() as $v){
  655.             if($v->getFactureMarchandiseAbscent() == true){
  656.                 $total $total $v->getTotalAPaiyer();
  657.             }
  658.         }
  659.         return $this->MontantTotalFactureNulle $total;
  660.     }
  661.     /**
  662.      * @return mixed
  663.      */
  664.     public function getTotalCBM()
  665.     {
  666.         $total 0;
  667.         foreach($this->getCommandes() as $v){
  668.             foreach($v->getTmpVolumes() as $k){
  669.                 if($k->getUnite() == 'CBM'){
  670.                     $total $total $k->getVolume();
  671.                 }
  672.             }
  673.         }
  674.         return $this->TotalCBM $total;
  675.     }
  676.     /**
  677.      * @return mixed
  678.      */
  679.     public function getTotalTONNE()
  680.     {
  681.         $total 0;
  682.         foreach($this->getCommandes() as $v){
  683.             foreach($v->getTmpVolumes() as $k){
  684.                 if($k->getUnite() == 'TONNE'){
  685.                     $total $total $k->getVolume();
  686.                 }
  687.             }
  688.         }
  689.         return $this->TotalTONNE $total;
  690.     }
  691.     /**
  692.      * @return mixed
  693.      */
  694.     public function getLieu()
  695.     {
  696.         $position 'A DETERMINER';
  697.         foreach($this->getSuiviContenaires() as $v){
  698.             if($v->getPositionActuelleFlag() === true){
  699.                 $position =  $v->getLieu();
  700.             }
  701.         }
  702.         return $this->lieu $position;
  703.     }
  704.     /**
  705.      * @return mixed
  706.      */
  707.     public function getLieuDate()
  708.     {
  709.         $positionDate = new \DateTime(date('d-m-Y'));
  710.         foreach($this->getSuiviContenaires() as $v){
  711.             if($v->getPositionActuelleFlag() === true){
  712.                 $positionDate =  $v->getDateOperation();
  713.             }
  714.         }
  715.         return $this->lieuDate $positionDate;
  716.     }
  717.     /**
  718.      * @return mixed
  719.      */
  720.     public function getDeclarant()
  721.     {
  722.         $declarant 'A DETERMINER';
  723.         foreach($this->getDeclarants() as $v){
  724.                 $declarant =  $v->getNomDeclarant();
  725.         }
  726.         return $this->declarant $declarant;
  727.     }
  728.     /**
  729.      * @return Collection|RemarqueConteneur[]
  730.      */
  731.     public function getRemarqueConteneurs(): Collection
  732.     {
  733.         return $this->remarqueConteneurs;
  734.     }
  735.     public function addRemarqueConteneur(RemarqueConteneur $remarqueConteneur): self
  736.     {
  737.         if (!$this->remarqueConteneurs->contains($remarqueConteneur)) {
  738.             $this->remarqueConteneurs[] = $remarqueConteneur;
  739.             $remarqueConteneur->setProgrammeConteneur($this);
  740.         }
  741.         return $this;
  742.     }
  743.     public function removeRemarqueConteneur(RemarqueConteneur $remarqueConteneur): self
  744.     {
  745.         if ($this->remarqueConteneurs->contains($remarqueConteneur)) {
  746.             $this->remarqueConteneurs->removeElement($remarqueConteneur);
  747.             // set the owning side to null (unless already changed)
  748.             if ($remarqueConteneur->getProgrammeConteneur() === $this) {
  749.                 $remarqueConteneur->setProgrammeConteneur(null);
  750.             }
  751.         }
  752.         return $this;
  753.     }
  754.     /**
  755.      * @return mixed
  756.      */
  757.     public function getTotalCOLIS()
  758.     {
  759.         $total 0;
  760.         foreach($this->getCommandes() as $v){
  761.             $total $total $v->getTotalCOLIS();
  762.         }
  763.         return $this->TotalCOLIS $total;
  764.     }
  765.     /**
  766.      * @return mixed
  767.      */
  768.     public function getMontantTotalAutreFraisPayer()
  769.     {
  770.         $total 0;
  771.         foreach($this->getCommandes() as $v){
  772.                 $total $total $v->getTotalAPaiyerAutraiFrais();
  773.         }
  774.         return $this->MontantTotalAutreFraisPayer $total;
  775.     }
  776.     /**
  777.      * @return mixed
  778.      */
  779.     public function getTotalAPaiyerVolume()
  780.     {
  781.         $total 0;
  782.         foreach($this->getCommandes() as $v){
  783.                 $total $total $v->getTotalAPaiyerVolume();
  784.         }
  785.         return $this->TotalAPaiyerVolume $total;
  786.     }
  787.      /**
  788.      * @return mixed
  789.      */
  790.     public function getRemarqueConteneur()
  791.     {
  792.         return $this->remarqueConteneur;
  793.     }
  794.     /**
  795.      * @param mixed $remarqueConteneur
  796.      */
  797.     public function setRemarqueConteneur($remarqueConteneur)
  798.     {
  799.         $this->remarqueConteneur $remarqueConteneur;
  800.     }
  801.     public function isIsMco(): ?bool
  802.     {
  803.         return $this->isMco;
  804.     }
  805.     public function setIsMco(bool $isMco): self
  806.     {
  807.         $this->isMco $isMco;
  808.         return $this;
  809.     }
  810.     public function isIsRapport(): ?bool
  811.     {
  812.         return $this->isRapport;
  813.     }
  814.     public function setIsRapport(bool $isRapport): self
  815.     {
  816.         $this->isRapport $isRapport;
  817.         return $this;
  818.     }
  819.     public function getDateRapportAt(): ?\DateTimeInterface
  820.     {
  821.         return $this->dateRapportAt;
  822.     }
  823.     public function setDateRapportAt(?\DateTimeInterface $dateRapportAt): self
  824.     {
  825.         $this->dateRapportAt $dateRapportAt;
  826.         return $this;
  827.     }
  828.     public function isIsClients(): ?bool
  829.     {
  830.         return $this->isClients;
  831.     }
  832.     public function setIsClients(bool $isClients): self
  833.     {
  834.         $this->isClients $isClients;
  835.         return $this;
  836.     }
  837.     public function getVilleInitiale(): ?Ville
  838.     {
  839.         return $this->villeInitiale;
  840.     }
  841.     public function setVilleInitiale(?Ville $villeInitiale): self
  842.     {
  843.         $this->villeInitiale $villeInitiale;
  844.         return $this;
  845.     }
  846.     /**
  847.      * @return Collection<int, Notification>
  848.      */
  849.     public function getNotifications(): Collection
  850.     {
  851.         return $this->notifications;
  852.     }
  853.     public function addNotification(Notification $notification): self
  854.     {
  855.         if (!$this->notifications->contains($notification)) {
  856.             $this->notifications[] = $notification;
  857.             $notification->setPrct($this);
  858.         }
  859.         return $this;
  860.     }
  861.     public function removeNotification(Notification $notification): self
  862.     {
  863.         if ($this->notifications->removeElement($notification)) {
  864.             // set the owning side to null (unless already changed)
  865.             if ($notification->getPrct() === $this) {
  866.                 $notification->setPrct(null);
  867.             }
  868.         }
  869.         return $this;
  870.     }
  871.     /**
  872.      * @return Collection<int, TmpConteneurReception>
  873.      */
  874.     public function getTmpConteneurReceptions(): Collection
  875.     {
  876.         return $this->tmpConteneurReceptions;
  877.     }
  878.     public function addTmpConteneurReception(TmpConteneurReception $tmpConteneurReception): self
  879.     {
  880.         if (!$this->tmpConteneurReceptions->contains($tmpConteneurReception)) {
  881.             $this->tmpConteneurReceptions[] = $tmpConteneurReception;
  882.             $tmpConteneurReception->setProgramme($this);
  883.         }
  884.         return $this;
  885.     }
  886.     public function removeTmpConteneurReception(TmpConteneurReception $tmpConteneurReception): self
  887.     {
  888.         if ($this->tmpConteneurReceptions->removeElement($tmpConteneurReception)) {
  889.             // set the owning side to null (unless already changed)
  890.             if ($tmpConteneurReception->getProgramme() === $this) {
  891.                 $tmpConteneurReception->setProgramme(null);
  892.             }
  893.         }
  894.         return $this;
  895.     }
  896.     public function getRapport(): ?string
  897.     {
  898.         return $this->rapport;
  899.     }
  900.     public function setRapport(string $rapport): self
  901.     {
  902.         $this->rapport $rapport;
  903.         return $this;
  904.     }
  905. }