src/Entity/Budget.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BudgetRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassBudgetRepository::class)]
  7. class Budget
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(nullabletrue)]
  14.     private ?int $annee null;
  15.     /*#[ORM\Column(nullable: true)]
  16.     private ?int $code_regroupement = null;
  17.     #[ORM\Column(nullable: true)]
  18.     private ?int $compte_client_livre = null;*/
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?float $montant_alloue null;
  21.     #[ORM\Column(nullabletrue)]
  22.     private ?float $montant_realise null;
  23.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  24.     private ?\DateTimeInterface $date_du null;
  25.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  26.     private ?\DateTimeInterface $date_au null;
  27.     #[ORM\Column(nullabletrue)]
  28.     private ?bool $cloture null;
  29.     #[ORM\Column(nullabletrue)]
  30.     private ?int $code_regroupement null;
  31.     #[ORM\Column(nullabletrue)]
  32.     private ?int $code_client_livre null;
  33.     /*#[ORM\ManyToOne(inversedBy: 'budgets')]
  34.     private ?Filieres $code_regroupement = null;
  35.     #[ORM\ManyToOne(inversedBy: 'budgets')]
  36.     private ?Filieres $compte_client_livre = null;*/
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getAnnee(): ?int
  42.     {
  43.         return $this->annee;
  44.     }
  45.     public function setAnnee(?int $annee): self
  46.     {
  47.         $this->annee $annee;
  48.         return $this;
  49.     }
  50.     public function getMontantAlloue(): ?float
  51.     {
  52.         return $this->montant_alloue;
  53.     }
  54.     public function setMontantAlloue(?float $montant_alloue): self
  55.     {
  56.         $this->montant_alloue $montant_alloue;
  57.         return $this;
  58.     }
  59.     public function getMontantRealise(): ?float
  60.     {
  61.         return $this->montant_realise;
  62.     }
  63.     public function setMontantRealise(?float $montant_realise): self
  64.     {
  65.         $this->montant_realise $montant_realise;
  66.         return $this;
  67.     }
  68.     public function getDateDu(): ?\DateTimeInterface
  69.     {
  70.         return $this->date_du;
  71.     }
  72.     public function setDateDu(?\DateTimeInterface $date_du): self
  73.     {
  74.         $this->date_du $date_du;
  75.         return $this;
  76.     }
  77.     public function getDateAu(): ?\DateTimeInterface
  78.     {
  79.         return $this->date_au;
  80.     }
  81.     public function setDateAu(?\DateTimeInterface $date_au): self
  82.     {
  83.         $this->date_au $date_au;
  84.         return $this;
  85.     }
  86.     public function isCloture(): ?bool
  87.     {
  88.         return $this->cloture;
  89.     }
  90.     public function setCloture(?bool $cloture): self
  91.     {
  92.         $this->cloture $cloture;
  93.         return $this;
  94.     }
  95.     /*public function getCodeRegroupement(): ?Filieres
  96.     {
  97.         return $this->code_regroupement;
  98.     }
  99.     public function setCodeRegroupement(?Filieres $code_regroupement): self
  100.     {
  101.         $this->code_regroupement = $code_regroupement;
  102.         return $this;
  103.     }
  104.     public function getCompteClientLivre(): ?Filieres
  105.     {
  106.         return $this->compte_client_livre;
  107.     }
  108.     public function setCompteClientLivre(?Filieres $compte_client_livre): self
  109.     {
  110.         $this->compte_client_livre = $compte_client_livre;
  111.         return $this;
  112.     }*/
  113.     public function getCodeRegroupement(): ?int
  114.     {
  115.         return $this->code_regroupement;
  116.     }
  117.     public function setCodeRegroupement(?int $code_regroupement): self
  118.     {
  119.         $this->code_regroupement $code_regroupement;
  120.         return $this;
  121.     }
  122.     public function getCodeClientLivre(): ?int
  123.     {
  124.         return $this->code_client_livre;
  125.     }
  126.     public function setCodeClientLivre(?int $code_client_livre): self
  127.     {
  128.         $this->code_client_livre $code_client_livre;
  129.         return $this;
  130.     }
  131. }