<?php
namespace App\Entity;
use App\Repository\AchatRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: AchatRepository::class)]
class Achat
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $libelle = null;
#[ORM\Column(type: Types::DECIMAL, precision: 10, scale: 2)]
private ?string $montant = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $dateAchat = null;
#[ORM\Column(nullable: true)]
private ?int $quantite = null;
public function getId(): ?int
{
return $this->id;
}
public function getLibelle(): ?string
{
return $this->libelle;
}
public function setLibelle(string $libelle): static
{
$this->libelle = $libelle;
return $this;
}
public function getMontant(): ?string
{
return $this->montant;
}
public function setMontant(string $montant): static
{
$this->montant = $montant;
return $this;
}
public function getDateAchat(): ?\DateTimeInterface
{
return $this->dateAchat;
}
public function setDateAchat(\DateTimeInterface $dateAchat): static
{
$this->dateAchat = $dateAchat;
return $this;
}
public function getQuantite(): ?int
{
return $this->quantite;
}
public function setQuantite(?int $quantite): static
{
$this->quantite = $quantite;
return $this;
}
}