<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Repository\DepensesContenaireRepository") */class DepensesContenaire{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity="App\Entity\ProgrammeContenaire", inversedBy="depensesContenaires") * @ORM\JoinColumn(nullable=false) */ private $idCmd; /** * @ORM\Column(type="string", length=255) */ private $Motif; /** * @ORM\Column(type="integer") */ private $Montant; /** * @ORM\Column(type="date") */ private $dateOperation; /** * @ORM\Column(type="string", length=255) */ private $libelle; /** * @ORM\Column(type="string", length=255) */ private $type; /** * @ORM\Column(type="boolean", nullable=true) */ private $flag; /** * @ORM\ManyToOne(targetEntity=Utilisateur::class, inversedBy="depensesContenaires") */ private $IdAg; /** * @ORM\Column(type="boolean") */ private $iScalcul; public function __construct() { $this->dateOperation = new \DateTime(); $this->flag = false; } public function getId(): ?int { return $this->id; } public function getIdCmd(): ?ProgrammeContenaire { return $this->idCmd; } public function setIdCmd(?ProgrammeContenaire $idCmd): self { $this->idCmd = $idCmd; return $this; } public function getMotif(): ?string { return $this->Motif; } public function setMotif(string $Motif): self { $this->Motif = $Motif; return $this; } public function getMontant(): ?int { return $this->Montant; } public function setMontant(int $Montant): self { $this->Montant = $Montant; return $this; } public function getDateOperation(): ?\DateTimeInterface { return $this->dateOperation; } public function setDateOperation(\DateTimeInterface $dateOperation): self { $this->dateOperation = $dateOperation; return $this; } public function getFlag(): ?bool { return $this->flag; } public function getLibelle(): ?string { return $this->libelle; } public function setLibelle(string $libelle): self { $this->libelle = $libelle; return $this; } public function getType(): ?string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } public function setFlag(?bool $flag): self { $this->flag = $flag; return $this; } public function getIdAg(): ?Utilisateur { return $this->IdAg; } public function setIdAg(?Utilisateur $IdAg): self { $this->IdAg = $IdAg; return $this; } public function isIScalcul(): ?bool { return $this->iScalcul; } public function setIScalcul(bool $iScalcul): self { $this->iScalcul = $iScalcul; return $this; }}