src/Entity/Config.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ConfigRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: ConfigRepository::class)]
  6. class Config
  7. {
  8. #[ORM\Id]
  9. #[ORM\GeneratedValue]
  10. #[ORM\Column(type: 'integer')]
  11. private $id;
  12. #[ORM\Column(type: 'string', length: 255, nullable: true)]
  13. private $nom;
  14. #[ORM\Column(type: 'float', nullable: true)]
  15. private $val;
  16. #[ORM\Column(type: 'integer')]
  17. private $num;
  18. #[ORM\Column(type: 'integer')]
  19. private $statut;
  20. public function getId(): ?int
  21. {
  22. return $this->id;
  23. }
  24. public function getNom(): ?string
  25. {
  26. return $this->nom;
  27. }
  28. public function setNom(?string $nom): self
  29. {
  30. $this->nom = $nom;
  31. return $this;
  32. }
  33. public function getVal(): ?float
  34. {
  35. return $this->val;
  36. }
  37. public function setVal(?float $val): self
  38. {
  39. $this->val = $val;
  40. return $this;
  41. }
  42. public function getNum(): ?int
  43. {
  44. return $this->num;
  45. }
  46. public function setNum(int $num): self
  47. {
  48. $this->num = $num;
  49. return $this;
  50. }
  51. public function getStatut(): ?int
  52. {
  53. return $this->statut;
  54. }
  55. public function setStatut(int $statut): self
  56. {
  57. $this->statut = $statut;
  58. return $this;
  59. }
  60. }