src/Entity/Tarif.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TarifRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassTarifRepository::class)]
  6. class Tarif
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $reference null;
  14.     #[ORM\Column]
  15.     private ?float $prix null;
  16.     #[ORM\ManyToOne(inversedBy'tarifs')]
  17.     private ?Produit $produit null;
  18.     #[ORM\Column(nullabletrue)]
  19.     private ?int $code_regroupement null;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getPrix(): ?float
  25.     {
  26.         return $this->prix;
  27.     }
  28.     public function setPrix(float $prix): self
  29.     {
  30.         $this->prix $prix;
  31.         return $this;
  32.     }
  33.     public function getReference(): ?string
  34.     {
  35.         return $this->reference;
  36.     }
  37.     public function setReference(string $reference): self
  38.     {
  39.         $this->reference $reference;
  40.         return $this;
  41.     }
  42.     public function getProduit(): ?Produit
  43.     {
  44.         return $this->produit;
  45.     }
  46.     public function setProduit(?Produit $produit): self
  47.     {
  48.         $this->produit $produit;
  49.         return $this;
  50.     }
  51.     public function getCodeRegroupement(): ?int
  52.     {
  53.         return $this->code_regroupement;
  54.     }
  55.     public function setCodeRegroupement(?int $code_regroupement): self
  56.     {
  57.         $this->code_regroupement $code_regroupement;
  58.         return $this;
  59.     }
  60. }