src/Entity/Ficheoffre.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FicheoffreRepository;
  4. use DateTimeInterface;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. #[ORM\Entity(repositoryClassFicheoffreRepository::class)]
  10. class Ficheoffre
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  17.     private ?DateTimeInterface $datefacteur null;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $modepaiement null;
  20.     #[ORM\Column(nullabletrue)]
  21.     private ?bool $payee null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $total null;
  24.     #[ORM\Column(length255nullabletrue)]
  25.     private ?string $doucumentfee null;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $fraistransit null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $numfact null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $douane null;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     private ?string $transport null;
  34.     #[ORM\Column(length255nullabletrue)]
  35.     private ?string $consignee null;
  36.     #[ORM\ManyToOne(inversedBy'ficheoffres')]
  37.     private ?Fournisseur $fournisseur null;
  38.     #[ORM\OneToMany(mappedBy'ficheoffre'targetEntityArticle::class, cascade: ["remove"])]
  39.     private Collection $article;
  40.     #[ORM\Column(length255nullabletrue)]
  41.     private ?string $type null;
  42.     #[ORM\Column(length255nullabletrue)]
  43.     private ?string $totalproduit null;
  44.     #[ORM\OneToMany(mappedBy'ficheoffre'targetEntityPayment::class, cascade: ["remove"])]
  45.     private Collection $payments;
  46.     #[ORM\Column(length255nullabletrue)]
  47.     private ?string $fraisdedocument null;
  48.     #[ORM\Column(length255nullabletrue)]
  49.     private ?string $totaldolar null;
  50.     #[ORM\Column(length255nullabletrue)]
  51.     private ?string $transportdhl null;
  52.     #[ORM\Column(nullabletrue)]
  53.     private ?array $frais null;
  54.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  55.     private ?DateTimeInterface $date null;
  56.     #[ORM\Column(length255nullabletrue)]
  57.     private ?string $totalqte null;
  58.     #[ORM\OneToMany(mappedBy'ficheoffre'targetEntityFraislocaux::class, cascade: ["remove"])]
  59.     private Collection $fraislocaux;
  60.     #[ORM\OneToMany(mappedBy'ficheoffre'targetEntityFraisfournisseurr::class, cascade: ["remove"])]
  61.     private Collection $fraisfournisseurrs;
  62.     #[ORM\Column(length255nullabletrue)]
  63.     private ?string $tauxdeconversion null;
  64.     #[ORM\Column(length255nullabletrue)]
  65.     private ?string $totaldinar null;
  66.     #[ORM\Column(length255nullabletrue)]
  67.     private ?string $totalfraislocaux null;
  68.     #[ORM\Column(length255nullabletrue)]
  69.     private ?string $num null;
  70.     #[ORM\OneToMany(mappedBy'ficheachat'targetEntityArchivearticle::class)]
  71.     private Collection $archivearticles;
  72.     public function __construct()
  73.     {
  74.         $this->article = new ArrayCollection();
  75.         $this->payments = new ArrayCollection();
  76.         $this->fraislocaux = new ArrayCollection();
  77.         $this->fraisfournisseurrs = new ArrayCollection();
  78.         $this->archivearticles = new ArrayCollection();
  79.     }
  80.     public function __toString()
  81.     {
  82.         return $this->getConsignee();
  83.     }
  84.     public function getId(): ?int
  85.     {
  86.         return $this->id;
  87.     }
  88.     public function getDatefacteur(): ?DateTimeInterface
  89.     {
  90.         return $this->datefacteur;
  91.     }
  92.     public function setDatefacteur(?DateTimeInterface $datefacteur): self
  93.     {
  94.         $this->datefacteur $datefacteur;
  95.         return $this;
  96.     }
  97.     public function getModepaiement(): ?string
  98.     {
  99.         return $this->modepaiement;
  100.     }
  101.     public function setModepaiement(?string $modepaiement): self
  102.     {
  103.         $this->modepaiement $modepaiement;
  104.         return $this;
  105.     }
  106.     public function isPayee(): ?bool
  107.     {
  108.         return $this->payee;
  109.     }
  110.     public function setPayee(?bool $payee): self
  111.     {
  112.         $this->payee $payee;
  113.         return $this;
  114.     }
  115.     public function getTotal(): ?string
  116.     {
  117.         return $this->total;
  118.     }
  119.     public function setTotal(?string $total): self
  120.     {
  121.         $this->total $total;
  122.         return $this;
  123.     }
  124.     public function getDoucumentfee(): ?string
  125.     {
  126.         return $this->doucumentfee;
  127.     }
  128.     public function setDoucumentfee(?string $doucumentfee): self
  129.     {
  130.         $this->doucumentfee $doucumentfee;
  131.         return $this;
  132.     }
  133.     public function getFraistransit(): ?string
  134.     {
  135.         return $this->fraistransit;
  136.     }
  137.     public function setFraistransit(?string $fraistransit): self
  138.     {
  139.         $this->fraistransit $fraistransit;
  140.         return $this;
  141.     }
  142.     public function getNumfact(): ?string
  143.     {
  144.         return $this->numfact;
  145.     }
  146.     public function setNumfact(?string $numfact): self
  147.     {
  148.         $this->numfact $numfact;
  149.         return $this;
  150.     }
  151.     public function getDouane(): ?string
  152.     {
  153.         return $this->douane;
  154.     }
  155.     public function setDouane(?string $douane): self
  156.     {
  157.         $this->douane $douane;
  158.         return $this;
  159.     }
  160.     public function getTransport(): ?string
  161.     {
  162.         return $this->transport;
  163.     }
  164.     public function setTransport(?string $transport): self
  165.     {
  166.         $this->transport $transport;
  167.         return $this;
  168.     }
  169.     public function getConsignee(): ?string
  170.     {
  171.         return $this->consignee;
  172.     }
  173.     public function setConsignee(?string $consignee): self
  174.     {
  175.         $this->consignee $consignee;
  176.         return $this;
  177.     }
  178.     public function getFournisseur(): ?Fournisseur
  179.     {
  180.         return $this->fournisseur;
  181.     }
  182.     public function setFournisseur(?Fournisseur $fournisseur): self
  183.     {
  184.         $this->fournisseur $fournisseur;
  185.         return $this;
  186.     }
  187.     /**
  188.      * @return Collection<int, Article>
  189.      */
  190.     public function getArticle(): Collection
  191.     {
  192.         return $this->article;
  193.     }
  194.     public function addArticle(Article $article): self
  195.     {
  196.         if (!$this->article->contains($article)) {
  197.             $this->article->add($article);
  198.             $article->setFicheoffre($this);
  199.         }
  200.         return $this;
  201.     }
  202.     public function removeArticle(Article $article): self
  203.     {
  204.         if ($this->article->removeElement($article)) {
  205.             // set the owning side to null (unless already changed)
  206.             if ($article->getFicheoffre() === $this) {
  207.                 $article->setFicheoffre(null);
  208.             }
  209.         }
  210.         return $this;
  211.     }
  212.     public function getType(): ?string
  213.     {
  214.         return $this->type;
  215.     }
  216.     public function setType(?string $type): self
  217.     {
  218.         $this->type $type;
  219.         return $this;
  220.     }
  221.     public function getTotalproduit(): ?string
  222.     {
  223.         return $this->totalproduit;
  224.     }
  225.     public function setTotalproduit(?string $totalproduit): self
  226.     {
  227.         $this->totalproduit $totalproduit;
  228.         return $this;
  229.     }
  230.     /**
  231.      * @return Collection<int, Payment>
  232.      */
  233.     public function getPayments(): Collection
  234.     {
  235.         return $this->payments;
  236.     }
  237.     public function addPayment(Payment $payment): self
  238.     {
  239.         if (!$this->payments->contains($payment)) {
  240.             $this->payments->add($payment);
  241.             $payment->setFicheoffre($this);
  242.         }
  243.         return $this;
  244.     }
  245.     public function removePayment(Payment $payment): self
  246.     {
  247.         if ($this->payments->removeElement($payment)) {
  248.             // set the owning side to null (unless already changed)
  249.             if ($payment->getFicheoffre() === $this) {
  250.                 $payment->setFicheoffre(null);
  251.             }
  252.         }
  253.         return $this;
  254.     }
  255.     public function getFraisdedocument(): ?string
  256.     {
  257.         return $this->fraisdedocument;
  258.     }
  259.     public function setFraisdedocument(?string $fraisdedocument): self
  260.     {
  261.         $this->fraisdedocument $fraisdedocument;
  262.         return $this;
  263.     }
  264.     public function getTotaldolar(): ?string
  265.     {
  266.         return $this->totaldolar;
  267.     }
  268.     public function setTotaldolar(?string $totaldolar): self
  269.     {
  270.         $this->totaldolar $totaldolar;
  271.         return $this;
  272.     }
  273.     public function getTransportdhl(): ?string
  274.     {
  275.         return $this->transportdhl;
  276.     }
  277.     public function setTransportdhl(?string $transportdhl): self
  278.     {
  279.         $this->transportdhl $transportdhl;
  280.         return $this;
  281.     }
  282.     public function getFrais(): ?array
  283.     {
  284.         return $this->frais;
  285.     }
  286.     public function setFrais(?array $frais): static
  287.     {
  288.         $this->frais $frais;
  289.         return $this;
  290.     }
  291.     public function getDate(): ?DateTimeInterface
  292.     {
  293.         return $this->date;
  294.     }
  295.     public function setDate(?DateTimeInterface $date): static
  296.     {
  297.         $this->date $date;
  298.         return $this;
  299.     }
  300.     public function getTotalqte(): ?string
  301.     {
  302.         return $this->totalqte;
  303.     }
  304.     public function setTotalqte(?string $totalqte): static
  305.     {
  306.         $this->totalqte $totalqte;
  307.         return $this;
  308.     }
  309.     /**
  310.      * @return Collection<int, Fraislocaux>
  311.      */
  312.     public function getFraislocaux(): Collection
  313.     {
  314.         return $this->fraislocaux;
  315.     }
  316.     public function addFraislocaux(Fraislocaux $fraislocaux): static
  317.     {
  318.         if (!$this->fraislocaux->contains($fraislocaux)) {
  319.             $this->fraislocaux->add($fraislocaux);
  320.             $fraislocaux->setFicheoffre($this);
  321.         }
  322.         return $this;
  323.     }
  324.     public function removeFraislocaux(Fraislocaux $fraislocaux): static
  325.     {
  326.         if ($this->fraislocaux->removeElement($fraislocaux)) {
  327.             // set the owning side to null (unless already changed)
  328.             if ($fraislocaux->getFicheoffre() === $this) {
  329.                 $fraislocaux->setFicheoffre(null);
  330.             }
  331.         }
  332.         return $this;
  333.     }
  334.     /**
  335.      * @return Collection<int, Fraisfournisseurr>
  336.      */
  337.     public function getFraisfournisseurrs(): Collection
  338.     {
  339.         return $this->fraisfournisseurrs;
  340.     }
  341.     public function addFraisfournisseurr(Fraisfournisseurr $fraisfournisseurr): static
  342.     {
  343.         if (!$this->fraisfournisseurrs->contains($fraisfournisseurr)) {
  344.             $this->fraisfournisseurrs->add($fraisfournisseurr);
  345.             $fraisfournisseurr->setFicheoffre($this);
  346.         }
  347.         return $this;
  348.     }
  349.     public function removeFraisfournisseurr(Fraisfournisseurr $fraisfournisseurr): static
  350.     {
  351.         if ($this->fraisfournisseurrs->removeElement($fraisfournisseurr)) {
  352.             // set the owning side to null (unless already changed)
  353.             if ($fraisfournisseurr->getFicheoffre() === $this) {
  354.                 $fraisfournisseurr->setFicheoffre(null);
  355.             }
  356.         }
  357.         return $this;
  358.     }
  359.     public function getTauxdeconversion(): ?string
  360.     {
  361.         return $this->tauxdeconversion;
  362.     }
  363.     public function setTauxdeconversion(?string $tauxdeconversion): static
  364.     {
  365.         $this->tauxdeconversion $tauxdeconversion;
  366.         return $this;
  367.     }
  368.     public function getTotaldinar(): ?string
  369.     {
  370.         return $this->totaldinar;
  371.     }
  372.     public function setTotaldinar(?string $totaldinar): static
  373.     {
  374.         $this->totaldinar $totaldinar;
  375.         return $this;
  376.     }
  377.     public function getTotalfraislocaux(): ?string
  378.     {
  379.         return $this->totalfraislocaux;
  380.     }
  381.     public function setTotalfraislocaux(?string $totalfraislocaux): static
  382.     {
  383.         $this->totalfraislocaux $totalfraislocaux;
  384.         return $this;
  385.     }
  386.     public function getNum(): ?string
  387.     {
  388.         return $this->num;
  389.     }
  390.     public function setNum(?string $num): static
  391.     {
  392.         $this->num $num;
  393.         return $this;
  394.     }
  395.     /**
  396.      * @return Collection<int, Archivearticle>
  397.      */
  398.     public function getArchivearticles(): Collection
  399.     {
  400.         return $this->archivearticles;
  401.     }
  402.     public function addArchivearticle(Archivearticle $archivearticle): self
  403.     {
  404.         if (!$this->archivearticles->contains($archivearticle)) {
  405.             $this->archivearticles->add($archivearticle);
  406.             $archivearticle->setFicheachat($this);
  407.         }
  408.         return $this;
  409.     }
  410.     public function removeArchivearticle(Archivearticle $archivearticle): self
  411.     {
  412.         if ($this->archivearticles->removeElement($archivearticle)) {
  413.             // set the owning side to null (unless already changed)
  414.             if ($archivearticle->getFicheachat() === $this) {
  415.                 $archivearticle->setFicheachat(null);
  416.             }
  417.         }
  418.         return $this;
  419.     }
  420. }