src/Entity/CentreCout.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CentreCoutRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: CentreCoutRepository::class)]
  6. #[ORM\Table(name: 'CentreCout')]
  7. class CentreCout
  8. {
  9. #[ORM\Id]
  10. #[ORM\GeneratedValue]
  11. #[ORM\Column(type: 'integer')]
  12. private ?int $id = null;
  13. #[ORM\Column(length: 30)]
  14. private ?string $libele = null;
  15. #[ORM\Column(type: 'integer', nullable: true)]
  16. private ?int $code = null;
  17. public function getId(): ?int
  18. {
  19. return $this->id;
  20. }
  21. public function getLibele(): ?string
  22. {
  23. return $this->libele;
  24. }
  25. public function setLibele(string $libele): self
  26. {
  27. $this->libele = $libele;
  28. return $this;
  29. }
  30. public function getCode(): ?int
  31. {
  32. return $this->code;
  33. }
  34. public function setCode(?int $code): self
  35. {
  36. $this->code = $code;
  37. return $this;
  38. }
  39. }