src/Entity/PaymentLog.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PaymentLogRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassPaymentLogRepository::class)]
  7. class PaymentLog
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(targetEntityInscription::class, inversedBy'paymentLogs')]
  14.     #[ORM\JoinColumn(nullabletrue)]
  15.     private ?Inscription $inscription null;
  16.     #[ORM\Column(nullabletrue)]
  17.     private ?float $Montant null;
  18.     #[ORM\Column(nullabletrue)]
  19.     private ?bool $isPaid null;
  20.     #[ORM\ManyToOne(targetEntityLine::class, inversedBy'paymentLogs'fetch"EAGER")]
  21.     #[ORM\JoinColumn(nullabletrue)]
  22.     private ?Line $line null;
  23.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  24.     private ?\DateTimeInterface $datePayment null;
  25.     private ?float $amountPayment null;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getInscription(): ?Inscription
  31.     {
  32.         return $this->inscription;
  33.     }
  34.     public function setInscription(?Inscription $inscription): static
  35.     {
  36.         $this->inscription $inscription;
  37.         return $this;
  38.     }
  39.     public function getMontant(): ?float
  40.     {
  41.         return $this->Montant;
  42.     }
  43.     public function setMontant(?float $Montant): static
  44.     {
  45.         $this->Montant $Montant;
  46.         return $this;
  47.     }
  48.     public function isPaid(): ?bool
  49.     {
  50.         return $this->isPaid;
  51.     }
  52.     /**
  53.      * @deprecated
  54.      */
  55.     public function isIsPaid(): ?bool
  56.     {
  57.         return $this->isPaid();
  58.     }
  59.     public function setIsPaid(?bool $isPaid): static
  60.     {
  61.         $this->isPaid $isPaid;
  62.         return $this;
  63.     }
  64.     public function getLine(): ?Line
  65.     {
  66.         return $this->line;
  67.     }
  68.     public function setLine(?Line $line): static
  69.     {
  70.         $this->line $line;
  71.         return $this;
  72.     }
  73.     public function getDatePayment(): ?\DateTimeInterface
  74.     {
  75.         return $this->datePayment;
  76.     }
  77.     public function setDatePayment(?\DateTimeInterface $datePayment): static
  78.     {
  79.         $this->datePayment $datePayment;
  80.         return $this;
  81.     }
  82. }