src/Entity/PaymentLog.php line 10
<?php
namespace App\Entity;
use App\Repository\PaymentLogRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PaymentLogRepository::class)]
class PaymentLog
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: Inscription::class, inversedBy: 'paymentLogs')]
#[ORM\JoinColumn(nullable: true)]
private ?Inscription $inscription = null;
#[ORM\Column(nullable: true)]
private ?float $Montant = null;
#[ORM\Column(nullable: true)]
private ?bool $isPaid = null;
#[ORM\ManyToOne(targetEntity: Line::class, inversedBy: 'paymentLogs', fetch: "EAGER")]
#[ORM\JoinColumn(nullable: true)]
private ?Line $line = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $datePayment = null;
private ?float $amountPayment = null;
public function getId(): ?int
{
return $this->id;
}
public function getInscription(): ?Inscription
{
return $this->inscription;
}
public function setInscription(?Inscription $inscription): static
{
$this->inscription = $inscription;
return $this;
}
public function getMontant(): ?float
{
return $this->Montant;
}
public function setMontant(?float $Montant): static
{
$this->Montant = $Montant;
return $this;
}
public function isPaid(): ?bool
{
return $this->isPaid;
}
/**
* @deprecated
*/
public function isIsPaid(): ?bool
{
return $this->isPaid();
}
public function setIsPaid(?bool $isPaid): static
{
$this->isPaid = $isPaid;
return $this;
}
public function getLine(): ?Line
{
return $this->line;
}
public function setLine(?Line $line): static
{
$this->line = $line;
return $this;
}
public function getDatePayment(): ?\DateTimeInterface
{
return $this->datePayment;
}
public function setDatePayment(?\DateTimeInterface $datePayment): static
{
$this->datePayment = $datePayment;
return $this;
}
}