src/Entity/DepensesContenaire.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\DepensesContenaireRepository")
  6.  */
  7. class DepensesContenaire
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\ManyToOne(targetEntity="App\Entity\ProgrammeContenaire", inversedBy="depensesContenaires")
  17.      * @ORM\JoinColumn(nullable=false)
  18.      */
  19.     private $idCmd;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $Motif;
  24.     /**
  25.      * @ORM\Column(type="integer")
  26.      */
  27.     private $Montant;
  28.     /**
  29.      * @ORM\Column(type="date")
  30.      */
  31.     private $dateOperation;
  32.     /**
  33.      * @ORM\Column(type="string", length=255)
  34.      */
  35.     private $libelle;
  36.     /**
  37.      * @ORM\Column(type="string", length=255)
  38.      */
  39.     private $type;
  40.     /**
  41.      * @ORM\Column(type="boolean", nullable=true)
  42.      */
  43.     private $flag;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity=Utilisateur::class, inversedBy="depensesContenaires")
  46.      */
  47.     private $IdAg;
  48.     /**
  49.      * @ORM\Column(type="boolean")
  50.      */
  51.     private $iScalcul;
  52.     public function __construct()
  53.     {
  54.         $this->dateOperation = new \DateTime();
  55.         $this->flag false;
  56.     }
  57.     public function getId(): ?int
  58.     {
  59.         return $this->id;
  60.     }
  61.     public function getIdCmd(): ?ProgrammeContenaire
  62.     {
  63.         return $this->idCmd;
  64.     }
  65.     public function setIdCmd(?ProgrammeContenaire $idCmd): self
  66.     {
  67.         $this->idCmd $idCmd;
  68.         return $this;
  69.     }
  70.     public function getMotif(): ?string
  71.     {
  72.         return $this->Motif;
  73.     }
  74.     public function setMotif(string $Motif): self
  75.     {
  76.         $this->Motif $Motif;
  77.         return $this;
  78.     }
  79.     public function getMontant(): ?int
  80.     {
  81.         return $this->Montant;
  82.     }
  83.     public function setMontant(int $Montant): self
  84.     {
  85.         $this->Montant $Montant;
  86.         return $this;
  87.     }
  88.     public function getDateOperation(): ?\DateTimeInterface
  89.     {
  90.         return $this->dateOperation;
  91.     }
  92.     public function setDateOperation(\DateTimeInterface $dateOperation): self
  93.     {
  94.         $this->dateOperation $dateOperation;
  95.         return $this;
  96.     }
  97.     public function getFlag(): ?bool
  98.     {
  99.         return $this->flag;
  100.     }
  101.     public function getLibelle(): ?string
  102.     {
  103.         return $this->libelle;
  104.     }
  105.     public function setLibelle(string $libelle): self
  106.     {
  107.         $this->libelle $libelle;
  108.         return $this;
  109.     }
  110.     public function getType(): ?string
  111.     {
  112.         return $this->type;
  113.     }
  114.     public function setType(string $type): self
  115.     {
  116.         $this->type $type;
  117.         return $this;
  118.     }
  119.     public function setFlag(?bool $flag): self
  120.     {
  121.         $this->flag $flag;
  122.         return $this;
  123.     }
  124.     public function getIdAg(): ?Utilisateur
  125.     {
  126.         return $this->IdAg;
  127.     }
  128.     public function setIdAg(?Utilisateur $IdAg): self
  129.     {
  130.         $this->IdAg $IdAg;
  131.         return $this;
  132.     }
  133.     public function isIScalcul(): ?bool
  134.     {
  135.         return $this->iScalcul;
  136.     }
  137.     public function setIScalcul(bool $iScalcul): self
  138.     {
  139.         $this->iScalcul $iScalcul;
  140.         return $this;
  141.     }
  142. }