src/Entity/PaymentGenerator.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PaymentGeneratorRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassPaymentGeneratorRepository::class)]
  6. class PaymentGenerator
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length100)]
  13.     private ?string $code null;
  14.     #[ORM\ManyToOne(inversedBy'paymentGenerators')]
  15.     private ?Annee $year null;
  16.     #[ORM\ManyToOne(inversedBy'paymentGenerators')]
  17.     private ?Mois $month null;
  18.     #[ORM\Column]
  19.     private ?bool $statut null;
  20.     #[ORM\ManyToOne(inversedBy'paymentGenerators')]
  21.     private ?Entreprise $marchand null;
  22.     #[ORM\Column(length25nullabletrue)]
  23.     private ?string $generatedMonth null;
  24.     #[ORM\Column(length25nullabletrue)]
  25.     private ?string $generatedYear null;
  26.     #[ORM\Column(length100nullabletrue)]
  27.     private ?string $mode null;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getCode(): ?string
  33.     {
  34.         return $this->code;
  35.     }
  36.     public function setCode(string $code): static
  37.     {
  38.         $this->code $code;
  39.         return $this;
  40.     }
  41.     public function getYear(): ?Annee
  42.     {
  43.         return $this->year;
  44.     }
  45.     public function setYear(?Annee $year): static
  46.     {
  47.         $this->year $year;
  48.         return $this;
  49.     }
  50.     public function getMonth(): ?Mois
  51.     {
  52.         return $this->month;
  53.     }
  54.     public function setMonth(?Mois $month): static
  55.     {
  56.         $this->month $month;
  57.         return $this;
  58.     }
  59.     public function isStatut(): ?bool
  60.     {
  61.         return $this->statut;
  62.     }
  63.     public function setStatut(bool $statut): static
  64.     {
  65.         $this->statut $statut;
  66.         return $this;
  67.     }
  68.     public function getMarchand(): ?Entreprise
  69.     {
  70.         return $this->marchand;
  71.     }
  72.     public function setMarchand(?Entreprise $marchand): static
  73.     {
  74.         $this->marchand $marchand;
  75.         return $this;
  76.     }
  77.     public function getGeneratedMonth(): ?string
  78.     {
  79.         return $this->generatedMonth;
  80.     }
  81.     public function setGeneratedMonth(?string $generatedMonth): static
  82.     {
  83.         $this->generatedMonth $generatedMonth;
  84.         return $this;
  85.     }
  86.     public function getGeneratedYear(): ?string
  87.     {
  88.         return $this->generatedYear;
  89.     }
  90.     public function setGeneratedYear(?string $generatedYear): static
  91.     {
  92.         $this->generatedYear $generatedYear;
  93.         return $this;
  94.     }
  95.     public function getMode(): ?string
  96.     {
  97.         return $this->mode;
  98.     }
  99.     public function setMode(?string $mode): static
  100.     {
  101.         $this->mode $mode;
  102.         return $this;
  103.     }
  104. }