<?phpnamespace App\Entity;use App\Repository\TarifsRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: TarifsRepository::class)]class Tarifs{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private ?int $id = null; #[ORM\Column(length: 50)] private ?string $type = null; #[ORM\Column(length: 100, unique: true)] private ?string $referenceArticle = null; #[ORM\Column(length: 255)] private ?string $designation = null; #[ORM\Column(length: 255, nullable: true)] private ?string $nomenclature = null; #[ORM\Column(length: 100, nullable: true)] private ?string $famille = null; #[ORM\Column(type: 'float')] private ?float $prixVente = null; // Ici c'est un float directement #[ORM\Column(type: 'datetime')] private ?\DateTimeInterface $dateCreation = null; #[ORM\Column(length: 100, nullable: true)] private ?string $classeTarifaire = null; public function getId(): ?int { return $this->id; } public function getType(): ?string { return $this->type; } public function setType(?string $type): static { $this->type = $type; return $this; } public function getReferenceArticle(): ?string { return $this->referenceArticle; } public function setReferenceArticle(?string $referenceArticle): static { $this->referenceArticle = $referenceArticle; return $this; } public function getDesignation(): ?string { return $this->designation; } public function setDesignation(?string $designation): static { $this->designation = $designation; return $this; } public function getNomenclature(): ?string { return $this->nomenclature; } public function setNomenclature(?string $nomenclature): static { $this->nomenclature = $nomenclature; return $this; } public function getFamille(): ?string { return $this->famille; } public function setFamille(?string $famille): static { $this->famille = $famille; return $this; } public function getPrixVente(): ?float { return $this->prixVente; } public function setPrixVente(float $prixVente): static { $this->prixVente = $prixVente; return $this; } public function getDateCreation(): ?\DateTimeInterface { return $this->dateCreation; } public function setDateCreation(?\DateTimeInterface $dateCreation): static { $this->dateCreation = $dateCreation; return $this; } public function getClasseTarifaire(): ?string { return $this->classeTarifaire; } public function setClasseTarifaire(?string $classeTarifaire): static { $this->classeTarifaire = $classeTarifaire; return $this; } public function __toString(): string { return $this->referenceArticle . ' - ' . $this->designation; }}