<?php
namespace App\Entity;
use App\Repository\CategoryCatalogueLignePlanRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CategoryCatalogueLignePlanRepository::class)]
#[ORM\Table(name: 'category_catalogue_ligne_plan')]
class CategoryCatalogueLignePlan
{
#[ORM\Id, ORM\GeneratedValue, ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: CategoryCatalogue::class)]
#[ORM\JoinColumn(nullable: false)]
private ?CategoryCatalogue $categorie = null;
#[ORM\ManyToOne(targetEntity: LignePlanAchat::class)]
#[ORM\JoinColumn(nullable: false)]
private ?LignePlanAchat $lignePlan = null;
#[ORM\Column(type: 'integer')]
private int $ordrePriorite = 1;
#[ORM\Column(type: 'boolean')]
private bool $estActif = true;
public function getId(): ?int { return $this->id; }
public function getCategorie(): ?CategoryCatalogue { return $this->categorie; }
public function setCategorie(?CategoryCatalogue $c): static { $this->categorie = $c; return $this; }
public function getLignePlan(): ?LignePlanAchat { return $this->lignePlan; }
public function setLignePlan(?LignePlanAchat $l): static { $this->lignePlan = $l; return $this; }
public function getOrdrePriorite(): int { return $this->ordrePriorite; }
public function setOrdrePriorite(int $o): static { $this->ordrePriorite = $o; return $this; }
public function isEstActif(): bool { return $this->estActif; }
public function setEstActif(bool $e): static { $this->estActif = $e; return $this; }
}