src/Entity/CategoryCatalogueLignePlan.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CategoryCatalogueLignePlanRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: CategoryCatalogueLignePlanRepository::class)]
  6. #[ORM\Table(name: 'category_catalogue_ligne_plan')]
  7. class CategoryCatalogueLignePlan
  8. {
  9. #[ORM\Id, ORM\GeneratedValue, ORM\Column]
  10. private ?int $id = null;
  11. #[ORM\ManyToOne(targetEntity: CategoryCatalogue::class)]
  12. #[ORM\JoinColumn(nullable: false)]
  13. private ?CategoryCatalogue $categorie = null;
  14. #[ORM\ManyToOne(targetEntity: LignePlanAchat::class)]
  15. #[ORM\JoinColumn(nullable: false)]
  16. private ?LignePlanAchat $lignePlan = null;
  17. #[ORM\Column(type: 'integer')]
  18. private int $ordrePriorite = 1;
  19. #[ORM\Column(type: 'boolean')]
  20. private bool $estActif = true;
  21. public function getId(): ?int { return $this->id; }
  22. public function getCategorie(): ?CategoryCatalogue { return $this->categorie; }
  23. public function setCategorie(?CategoryCatalogue $c): static { $this->categorie = $c; return $this; }
  24. public function getLignePlan(): ?LignePlanAchat { return $this->lignePlan; }
  25. public function setLignePlan(?LignePlanAchat $l): static { $this->lignePlan = $l; return $this; }
  26. public function getOrdrePriorite(): int { return $this->ordrePriorite; }
  27. public function setOrdrePriorite(int $o): static { $this->ordrePriorite = $o; return $this; }
  28. public function isEstActif(): bool { return $this->estActif; }
  29. public function setEstActif(bool $e): static { $this->estActif = $e; return $this; }
  30. }