src/Entity/Achat.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AchatRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassAchatRepository::class)]
  7. class Achat
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $libelle null;
  15.     #[ORM\Column(typeTypes::DECIMALprecision10scale2)]
  16.     private ?string $montant null;
  17.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  18.     private ?\DateTimeInterface $dateAchat null;
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?int $quantite null;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getLibelle(): ?string
  26.     {
  27.         return $this->libelle;
  28.     }
  29.     public function setLibelle(string $libelle): static
  30.     {
  31.         $this->libelle $libelle;
  32.         return $this;
  33.     }
  34.     public function getMontant(): ?string
  35.     {
  36.         return $this->montant;
  37.     }
  38.     public function setMontant(string $montant): static
  39.     {
  40.         $this->montant $montant;
  41.         return $this;
  42.     }
  43.     public function getDateAchat(): ?\DateTimeInterface
  44.     {
  45.         return $this->dateAchat;
  46.     }
  47.     public function setDateAchat(\DateTimeInterface $dateAchat): static
  48.     {
  49.         $this->dateAchat $dateAchat;
  50.         return $this;
  51.     }
  52.     public function getQuantite(): ?int
  53.     {
  54.         return $this->quantite;
  55.     }
  56.     public function setQuantite(?int $quantite): static
  57.     {
  58.         $this->quantite $quantite;
  59.         return $this;
  60.     }
  61. }