src/Entity/IctusEtatPaiement.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\IctusEtatPaiementRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=IctusEtatPaiementRepository::class)
  9.  */
  10. class IctusEtatPaiement
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $designation;
  22.     /**
  23.      * @ORM\OneToMany(targetEntity=IctusCommande::class, mappedBy="etatpaiement")
  24.      */
  25.     private $ictusCommandes;
  26.     /**
  27.      * @ORM\OneToMany(targetEntity=CommandeSpecial::class, mappedBy="etatPaiement")
  28.      */
  29.     private $commandeSpecials;
  30.     /**
  31.      * @ORM\OneToMany(targetEntity=FacturePharmacie::class, mappedBy="etatPaiement")
  32.      */
  33.     private $facturePharmacies;
  34.     public function __construct()
  35.     {
  36.         $this->ictusCommandes = new ArrayCollection();
  37.         $this->commandeSpecials = new ArrayCollection();
  38.         $this->facturePharmacies = new ArrayCollection();
  39.     }
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getDesignation(): ?string
  45.     {
  46.         return $this->designation;
  47.     }
  48.     public function setDesignation(string $designation): self
  49.     {
  50.         $this->designation $designation;
  51.         return $this;
  52.     }
  53.     /**
  54.      * @return Collection<int, IctusCommande>
  55.      */
  56.     public function getIctusCommandes(): Collection
  57.     {
  58.         return $this->ictusCommandes;
  59.     }
  60.     public function addIctusCommande(IctusCommande $ictusCommande): self
  61.     {
  62.         if (!$this->ictusCommandes->contains($ictusCommande)) {
  63.             $this->ictusCommandes[] = $ictusCommande;
  64.             $ictusCommande->setEtatpaiement($this);
  65.         }
  66.         return $this;
  67.     }
  68.     public function removeIctusCommande(IctusCommande $ictusCommande): self
  69.     {
  70.         if ($this->ictusCommandes->removeElement($ictusCommande)) {
  71.             // set the owning side to null (unless already changed)
  72.             if ($ictusCommande->getEtatpaiement() === $this) {
  73.                 $ictusCommande->setEtatpaiement(null);
  74.             }
  75.         }
  76.         return $this;
  77.     }
  78.     /**
  79.      * @return Collection<int, CommandeSpecial>
  80.      */
  81.     public function getCommandeSpecials(): Collection
  82.     {
  83.         return $this->commandeSpecials;
  84.     }
  85.     public function addCommandeSpecial(CommandeSpecial $commandeSpecial): self
  86.     {
  87.         if (!$this->commandeSpecials->contains($commandeSpecial)) {
  88.             $this->commandeSpecials[] = $commandeSpecial;
  89.             $commandeSpecial->setEtatPaiement($this);
  90.         }
  91.         return $this;
  92.     }
  93.     public function removeCommandeSpecial(CommandeSpecial $commandeSpecial): self
  94.     {
  95.         if ($this->commandeSpecials->removeElement($commandeSpecial)) {
  96.             // set the owning side to null (unless already changed)
  97.             if ($commandeSpecial->getEtatPaiement() === $this) {
  98.                 $commandeSpecial->setEtatPaiement(null);
  99.             }
  100.         }
  101.         return $this;
  102.     }
  103.     /**
  104.      * @return Collection<int, FacturePharmacie>
  105.      */
  106.     public function getFacturePharmacies(): Collection
  107.     {
  108.         return $this->facturePharmacies;
  109.     }
  110.     public function addFacturePharmacy(FacturePharmacie $facturePharmacy): self
  111.     {
  112.         if (!$this->facturePharmacies->contains($facturePharmacy)) {
  113.             $this->facturePharmacies[] = $facturePharmacy;
  114.             $facturePharmacy->setEtatPaiement($this);
  115.         }
  116.         return $this;
  117.     }
  118.     public function removeFacturePharmacy(FacturePharmacie $facturePharmacy): self
  119.     {
  120.         if ($this->facturePharmacies->removeElement($facturePharmacy)) {
  121.             // set the owning side to null (unless already changed)
  122.             if ($facturePharmacy->getEtatPaiement() === $this) {
  123.                 $facturePharmacy->setEtatPaiement(null);
  124.             }
  125.         }
  126.         return $this;
  127.     }
  128. }