src/Entity/Ficheachatnf.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FicheachatnfRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassFicheachatnfRepository::class)]
  9. class Ficheachatnf
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  16.     private ?\DateTimeInterface $date null;
  17.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  18.     private ?string $remarque null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $totalqte null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $montanttotal null;
  23.     #[ORM\OneToMany(mappedBy'ficheachatnf'targetEntityArticleficheachatnf::class)]
  24.     private Collection $articleficheachatnfs;
  25.     #[ORM\OneToMany(mappedBy'ficheachatnf'targetEntityArchivearticle::class)]
  26.     private Collection $archivearticles;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $totalht null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $totalequantite null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $totalettc null;
  33.     #[ORM\ManyToOne(inversedBy'ficheachatnfs')]
  34.     private ?Fournisseur $fournisseur null;
  35.     #[ORM\Column(length255nullabletrue)]
  36.     private ?string $num null;
  37.     public function __construct()
  38.     {
  39.         $this->articleficheachatnfs = new ArrayCollection();
  40.         $this->archivearticles = new ArrayCollection();
  41.     }
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getDate(): ?\DateTimeInterface
  47.     {
  48.         return $this->date;
  49.     }
  50.     public function setDate(?\DateTimeInterface $date): self
  51.     {
  52.         $this->date $date;
  53.         return $this;
  54.     }
  55.     public function getRemarque(): ?string
  56.     {
  57.         return $this->remarque;
  58.     }
  59.     public function setRemarque(?string $remarque): self
  60.     {
  61.         $this->remarque $remarque;
  62.         return $this;
  63.     }
  64.     public function getTotalqte(): ?string
  65.     {
  66.         return $this->totalqte;
  67.     }
  68.     public function setTotalqte(?string $totalqte): self
  69.     {
  70.         $this->totalqte $totalqte;
  71.         return $this;
  72.     }
  73.     public function getMontanttotal(): ?string
  74.     {
  75.         return $this->montanttotal;
  76.     }
  77.     public function setMontanttotal(?string $montanttotal): self
  78.     {
  79.         $this->montanttotal $montanttotal;
  80.         return $this;
  81.     }
  82.     /**
  83.      * @return Collection<int, Articleficheachatnf>
  84.      */
  85.     public function getArticleficheachatnfs(): Collection
  86.     {
  87.         return $this->articleficheachatnfs;
  88.     }
  89.     public function addArticleficheachatnf(Articleficheachatnf $articleficheachatnf): self
  90.     {
  91.         if (!$this->articleficheachatnfs->contains($articleficheachatnf)) {
  92.             $this->articleficheachatnfs->add($articleficheachatnf);
  93.             $articleficheachatnf->setFicheachatnf($this);
  94.         }
  95.         return $this;
  96.     }
  97.     public function removeArticleficheachatnf(Articleficheachatnf $articleficheachatnf): self
  98.     {
  99.         if ($this->articleficheachatnfs->removeElement($articleficheachatnf)) {
  100.             // set the owning side to null (unless already changed)
  101.             if ($articleficheachatnf->getFicheachatnf() === $this) {
  102.                 $articleficheachatnf->setFicheachatnf(null);
  103.             }
  104.         }
  105.         return $this;
  106.     }
  107.     /**
  108.      * @return Collection<int, Archivearticle>
  109.      */
  110.     public function getArchivearticles(): Collection
  111.     {
  112.         return $this->archivearticles;
  113.     }
  114.     public function addArchivearticle(Archivearticle $archivearticle): self
  115.     {
  116.         if (!$this->archivearticles->contains($archivearticle)) {
  117.             $this->archivearticles->add($archivearticle);
  118.             $archivearticle->setFicheachatnf($this);
  119.         }
  120.         return $this;
  121.     }
  122.     public function removeArchivearticle(Archivearticle $archivearticle): self
  123.     {
  124.         if ($this->archivearticles->removeElement($archivearticle)) {
  125.             // set the owning side to null (unless already changed)
  126.             if ($archivearticle->getFicheachatnf() === $this) {
  127.                 $archivearticle->setFicheachatnf(null);
  128.             }
  129.         }
  130.         return $this;
  131.     }
  132.     public function __toString(): string
  133.     {
  134.         return $this->id ? (string)$this->id 'New Fiche';
  135.     }
  136.     public function getTotalht(): ?string
  137.     {
  138.         return $this->totalht;
  139.     }
  140.     public function setTotalht(?string $totalht): self
  141.     {
  142.         $this->totalht $totalht;
  143.         return $this;
  144.     }
  145.     public function getTotalequantite(): ?string
  146.     {
  147.         return $this->totalequantite;
  148.     }
  149.     public function setTotalequantite(?string $totalequantite): self
  150.     {
  151.         $this->totalequantite $totalequantite;
  152.         return $this;
  153.     }
  154.     public function getTotalettc(): ?string
  155.     {
  156.         return $this->totalettc;
  157.     }
  158.     public function setTotalettc(?string $totalettc): self
  159.     {
  160.         $this->totalettc $totalettc;
  161.         return $this;
  162.     }
  163.     public function getFournisseur(): ?Fournisseur
  164.     {
  165.         return $this->fournisseur;
  166.     }
  167.     public function setFournisseur(?Fournisseur $fournisseur): self
  168.     {
  169.         $this->fournisseur $fournisseur;
  170.         return $this;
  171.     }
  172.     public function getNum(): ?string
  173.     {
  174.         return $this->num;
  175.     }
  176.     public function setNum(?string $num): self
  177.     {
  178.         $this->num $num;
  179.         return $this;
  180.     }
  181. }