HegreLand/src/Entity/Category.php

72 lines
1.2 KiB
PHP
Raw Normal View History

2024-09-26 15:36:56 +02:00
<?php
2024-09-26 15:49:16 +02:00
namespace App\Entity;
2024-10-03 17:27:42 +02:00
use Doctrine\Common\Collections\Collection;
2024-09-26 15:49:16 +02:00
use Doctrine\ORM\Mapping as ORM;
class Category
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 30)]
private ?string $label = null;
2024-10-03 17:27:42 +02:00
#[ORM\ManyToOne(targetEntity: MissionCategory::class, inversedBy: 'category')]
private Collection $missionCategory;
2024-09-26 15:49:16 +02:00
public function getId(): ?int
{
return $this->id;
}
public function setId(int $id): static
{
$this->id = $id;
return $this;
}
public function getLabel(): ?string
{
return $this->label;
}
public function setLabel(string $label): static
{
$this->label = $label;
return $this;
}
2024-10-03 17:27:42 +02:00
public function getMission(): ?Mission
{
return $this->mission;
}
public function setMission(?Mission $mission): void
{
$this->mission = $mission;
}
public function getMissionCategory(): Collection
{
return $this->missionCategory;
}
public function setMissionCategory(Collection $missionCategory): void
{
$this->missionCategory = $missionCategory;
}
2024-09-26 15:49:16 +02:00
}
2024-10-03 17:27:42 +02:00