<?php
namespace App\Entity;
use App\Repository\IctusEtatPaiementRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=IctusEtatPaiementRepository::class)
*/
class IctusEtatPaiement
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $designation;
/**
* @ORM\OneToMany(targetEntity=IctusCommande::class, mappedBy="etatpaiement")
*/
private $ictusCommandes;
/**
* @ORM\OneToMany(targetEntity=CommandeSpecial::class, mappedBy="etatPaiement")
*/
private $commandeSpecials;
/**
* @ORM\OneToMany(targetEntity=FacturePharmacie::class, mappedBy="etatPaiement")
*/
private $facturePharmacies;
public function __construct()
{
$this->ictusCommandes = new ArrayCollection();
$this->commandeSpecials = new ArrayCollection();
$this->facturePharmacies = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getDesignation(): ?string
{
return $this->designation;
}
public function setDesignation(string $designation): self
{
$this->designation = $designation;
return $this;
}
/**
* @return Collection<int, IctusCommande>
*/
public function getIctusCommandes(): Collection
{
return $this->ictusCommandes;
}
public function addIctusCommande(IctusCommande $ictusCommande): self
{
if (!$this->ictusCommandes->contains($ictusCommande)) {
$this->ictusCommandes[] = $ictusCommande;
$ictusCommande->setEtatpaiement($this);
}
return $this;
}
public function removeIctusCommande(IctusCommande $ictusCommande): self
{
if ($this->ictusCommandes->removeElement($ictusCommande)) {
// set the owning side to null (unless already changed)
if ($ictusCommande->getEtatpaiement() === $this) {
$ictusCommande->setEtatpaiement(null);
}
}
return $this;
}
/**
* @return Collection<int, CommandeSpecial>
*/
public function getCommandeSpecials(): Collection
{
return $this->commandeSpecials;
}
public function addCommandeSpecial(CommandeSpecial $commandeSpecial): self
{
if (!$this->commandeSpecials->contains($commandeSpecial)) {
$this->commandeSpecials[] = $commandeSpecial;
$commandeSpecial->setEtatPaiement($this);
}
return $this;
}
public function removeCommandeSpecial(CommandeSpecial $commandeSpecial): self
{
if ($this->commandeSpecials->removeElement($commandeSpecial)) {
// set the owning side to null (unless already changed)
if ($commandeSpecial->getEtatPaiement() === $this) {
$commandeSpecial->setEtatPaiement(null);
}
}
return $this;
}
/**
* @return Collection<int, FacturePharmacie>
*/
public function getFacturePharmacies(): Collection
{
return $this->facturePharmacies;
}
public function addFacturePharmacy(FacturePharmacie $facturePharmacy): self
{
if (!$this->facturePharmacies->contains($facturePharmacy)) {
$this->facturePharmacies[] = $facturePharmacy;
$facturePharmacy->setEtatPaiement($this);
}
return $this;
}
public function removeFacturePharmacy(FacturePharmacie $facturePharmacy): self
{
if ($this->facturePharmacies->removeElement($facturePharmacy)) {
// set the owning side to null (unless already changed)
if ($facturePharmacy->getEtatPaiement() === $this) {
$facturePharmacy->setEtatPaiement(null);
}
}
return $this;
}
}