src/Entity/Tarifs.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TarifsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassTarifsRepository::class)]
  6. class Tarifs
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private ?int $id null;
  12.     #[ORM\Column(length50)]
  13.     private ?string $type null;
  14.     #[ORM\Column(length100uniquetrue)]
  15.     private ?string $referenceArticle null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $designation null;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $nomenclature null;
  20.     #[ORM\Column(length100nullabletrue)]
  21.     private ?string $famille null;
  22.     #[ORM\Column(type'float')]
  23.     private ?float $prixVente null// Ici c'est un float directement
  24.     #[ORM\Column(type'datetime')]
  25.     private ?\DateTimeInterface $dateCreation null;
  26.     #[ORM\Column(length100nullabletrue)]
  27.     private ?string $classeTarifaire null;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getType(): ?string
  33.     {
  34.         return $this->type;
  35.     }
  36.     public function setType(?string $type): static
  37.     {
  38.         $this->type $type;
  39.         return $this;
  40.     }
  41.     public function getReferenceArticle(): ?string
  42.     {
  43.         return $this->referenceArticle;
  44.     }
  45.     public function setReferenceArticle(?string $referenceArticle): static
  46.     {
  47.         $this->referenceArticle $referenceArticle;
  48.         return $this;
  49.     }
  50.     public function getDesignation(): ?string
  51.     {
  52.         return $this->designation;
  53.     }
  54.     public function setDesignation(?string $designation): static
  55.     {
  56.         $this->designation $designation;
  57.         return $this;
  58.     }
  59.     public function getNomenclature(): ?string
  60.     {
  61.         return $this->nomenclature;
  62.     }
  63.     public function setNomenclature(?string $nomenclature): static
  64.     {
  65.         $this->nomenclature $nomenclature;
  66.         return $this;
  67.     }
  68.     public function getFamille(): ?string
  69.     {
  70.         return $this->famille;
  71.     }
  72.     public function setFamille(?string $famille): static
  73.     {
  74.         $this->famille $famille;
  75.         return $this;
  76.     }
  77.     public function getPrixVente(): ?float
  78.     {
  79.         return $this->prixVente;
  80.     }
  81.     public function setPrixVente(float $prixVente): static
  82.     {
  83.         $this->prixVente $prixVente;
  84.         return $this;
  85.     }
  86.     public function getDateCreation(): ?\DateTimeInterface
  87.     {
  88.         return $this->dateCreation;
  89.     }
  90.     public function setDateCreation(?\DateTimeInterface $dateCreation): static
  91.     {
  92.         $this->dateCreation $dateCreation;
  93.         return $this;
  94.     }
  95.     public function getClasseTarifaire(): ?string
  96.     {
  97.         return $this->classeTarifaire;
  98.     }
  99.     public function setClasseTarifaire(?string $classeTarifaire): static
  100.     {
  101.         $this->classeTarifaire $classeTarifaire;
  102.         return $this;
  103.     }
  104.     public function __toString(): string
  105.     {
  106.         return $this->referenceArticle ' - ' $this->designation;
  107.     }
  108. }