src/Entity/Paymentdevi.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PaymentdeviRepository;
  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(repositoryClassPaymentdeviRepository::class)]
  10. class Paymentdevi
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $montant null;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $acompte null;
  20.     #[ORM\Column(length255nullabletrue)]
  21.     private ?string $reste null;
  22.     #[ORM\ManyToOne(inversedBy'paymentdevis')]
  23.     private ?Devis $devis null;
  24.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  25.     private ?string $description null;
  26.     #[ORM\Column(length255nullabletrue)]
  27.     private ?string $piecejointe null;
  28.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  29.     private ?DateTimeInterface $date null;
  30.     #[ORM\OneToMany(mappedBy'paymentdevi'targetEntityHistoriquepaiementsdevis::class, cascade: ["remove"])]
  31.     private Collection $historiquepaiementsdevis;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     private ?string $modedepaiement null;
  34.     #[ORM\Column(length255nullabletrue)]
  35.     private ?string $num null;
  36.     #[ORM\Column(length255nullabletrue)]
  37.     private ?string $remise null;
  38.     public function __construct()
  39.     {
  40.         $this->historiquepaiementsdevis = new ArrayCollection();
  41.     }
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getMontant(): ?string
  47.     {
  48.         return $this->montant;
  49.     }
  50.     public function setMontant(?string $montant): static
  51.     {
  52.         $this->montant $montant;
  53.         return $this;
  54.     }
  55.     public function getAcompte(): ?string
  56.     {
  57.         return $this->acompte;
  58.     }
  59.     public function setAcompte(?string $acompte): static
  60.     {
  61.         $this->acompte $acompte;
  62.         return $this;
  63.     }
  64.     public function getReste(): ?string
  65.     {
  66.         return $this->reste;
  67.     }
  68.     public function setReste(?string $reste): static
  69.     {
  70.         $this->reste $reste;
  71.         return $this;
  72.     }
  73.     public function getDevis(): ?Devis
  74.     {
  75.         return $this->devis;
  76.     }
  77.     public function setDevis(?Devis $devis): static
  78.     {
  79.         $this->devis $devis;
  80.         return $this;
  81.     }
  82.     public function getDescription(): ?string
  83.     {
  84.         return $this->description;
  85.     }
  86.     public function setDescription(?string $description): static
  87.     {
  88.         $this->description $description;
  89.         return $this;
  90.     }
  91.     public function getPiecejointe(): ?string
  92.     {
  93.         return $this->piecejointe;
  94.     }
  95.     public function setPiecejointe(?string $piecejointe): static
  96.     {
  97.         $this->piecejointe $piecejointe;
  98.         return $this;
  99.     }
  100.     public function getDate(): ?DateTimeInterface
  101.     {
  102.         return $this->date;
  103.     }
  104.     public function setDate(?DateTimeInterface $date): static
  105.     {
  106.         $this->date $date;
  107.         return $this;
  108.     }
  109.     /**
  110.      * @return Collection<int, Historiquepaiementsdevis>
  111.      */
  112.     public function getHistoriquepaiementsdevis(): Collection
  113.     {
  114.         return $this->historiquepaiementsdevis;
  115.     }
  116.     public function addHistoriquepaiementsdevi(Historiquepaiementsdevis $historiquepaiementsdevi): static
  117.     {
  118.         if (!$this->historiquepaiementsdevis->contains($historiquepaiementsdevi)) {
  119.             $this->historiquepaiementsdevis->add($historiquepaiementsdevi);
  120.             $historiquepaiementsdevi->setPaymentdevi($this);
  121.         }
  122.         return $this;
  123.     }
  124.     public function removeHistoriquepaiementsdevi(Historiquepaiementsdevis $historiquepaiementsdevi): static
  125.     {
  126.         if ($this->historiquepaiementsdevis->removeElement($historiquepaiementsdevi)) {
  127.             // set the owning side to null (unless already changed)
  128.             if ($historiquepaiementsdevi->getPaymentdevi() === $this) {
  129.                 $historiquepaiementsdevi->setPaymentdevi(null);
  130.             }
  131.         }
  132.         return $this;
  133.     }
  134.     public function getModedepaiement(): ?string
  135.     {
  136.         return $this->modedepaiement;
  137.     }
  138.     public function setModedepaiement(?string $modedepaiement): static
  139.     {
  140.         $this->modedepaiement $modedepaiement;
  141.         return $this;
  142.     }
  143.     public function getNum(): ?string
  144.     {
  145.         return $this->num;
  146.     }
  147.     public function setNum(?string $num): self
  148.     {
  149.         $this->num $num;
  150.         return $this;
  151.     }
  152.     public function getRemise(): ?string
  153.     {
  154.         return $this->remise;
  155.     }
  156.     public function setRemise(?string $remise): self
  157.     {
  158.         $this->remise $remise;
  159.         return $this;
  160.     }
  161. }