src/Entity/FactureFormateur.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FactureFormateurRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. #[ORM\Entity(repositoryClassFactureFormateurRepository::class)]
  8. class FactureFormateur
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  15.     #[Assert\NotBlank (message:"Le champ ne peut pas ĂȘtre vide.")]
  16.     private ?\DateTimeInterface $date null;
  17.     #[ORM\ManyToOne(inversedBy'factureFormateurs')]
  18.     #[Assert\NotBlank (message:"Le champ ne peut pas ĂȘtre vide.")]
  19.     private ?Engagement $engagement null;
  20.     #[ORM\Column(nullabletrue)]
  21.     private ?float $montant null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $devise null;
  24.     #[ORM\Column(nullabletrue)]
  25.     #[Assert\NotBlank]
  26.     private ?int $etatPaiement null;
  27.     
  28.     public function __toString()
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getDate(): ?\DateTimeInterface
  37.     {
  38.         return $this->date;
  39.     }
  40.     public function setDate(?\DateTimeInterface $date): self
  41.     {
  42.         $this->date $date;
  43.         return $this;
  44.     }
  45.     public function getEngagement(): ?Engagement
  46.     {
  47.         return $this->engagement;
  48.     }
  49.     public function setEngagement(?Engagement $engagement): self
  50.     {
  51.         $this->engagement $engagement;
  52.         return $this;
  53.     }
  54.     public function getEtatPaiement(): ?int
  55.     {
  56.         return $this->etatPaiement;
  57.     }
  58.     public function setEtatPaiement(?int $etatPaiement): self
  59.     {
  60.         $this->etatPaiement $etatPaiement;
  61.         return $this;
  62.     }
  63.     public function getMontant(): ?float
  64.     {
  65.         return $this->montant;
  66.     }
  67.     public function setMontant(?float $montant): self
  68.     {
  69.         $this->montant $montant;
  70.         return $this;
  71.     }
  72.     public function getDevise(): ?string
  73.     {
  74.         return $this->devise;
  75.     }
  76.     public function setDevise(?string $devise): static
  77.     {
  78.         $this->devise $devise;
  79.         return $this;
  80.     }
  81.     
  82. }