<?php
namespace App\Entity;
use App\Repository\SousCategoryCatalogueRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: SousCategoryCatalogueRepository::class)]
#[ORM\Table(name: 'SousCategoryCatalogue')]
class SousCategoryCatalogue
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: CategoryCatalogue::class)]
#[ORM\JoinColumn(nullable: true)]
private ?CategoryCatalogue $categorycatalogue = null;
#[ORM\Column(length: 255)]
private string $libelle;
public function getId(): ?int
{
return $this->id;
}
public function getLibelle(): string
{
return $this->libelle;
}
public function setLibelle(string $libelle): self
{
$this->libelle = $libelle;
return $this;
}
public function getCategorycatalogue(): ?CategoryCatalogue
{
return $this->categorycatalogue;
}
public function setCategorycatalogue(?CategoryCatalogue $categorycatalogue): self
{
$this->categorycatalogue = $categorycatalogue;
return $this;
}
}