src/Entity/SousCategoryCatalogue.php line 10

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