<?phpnamespace App\Entity;use App\Repository\RefStatusRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: RefStatusRepository::class)]class RefStatus{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; #[ORM\Column(type: 'string', length: 45)] private $label; #[ORM\Column(type: 'string', length: 45)] private $type; #[ORM\Column(type: 'string', length: 45, nullable: true)] private $slug; #[ORM\OneToMany(mappedBy: 'status', targetEntity: LitigeStatusHistory::class)] private Collection $litigeStatusHistories; public function __construct() { $this->litigeStatusHistories = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getLabel(): ?string { return $this->label; } public function setLabel(string $label): self { $this->label = $label; return $this; } public function getType(): ?string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } public function getSlug(): ?string { return $this->slug; } public function setSlug(?string $slug): self { $this->slug = $slug; return $this; } /** * @return Collection<int, LitigeStatusHistory> */ public function getLitigeStatusHistories(): Collection { return $this->litigeStatusHistories; } public function addLitigeStatusHistory(LitigeStatusHistory $litigeStatusHistory): static { if (!$this->litigeStatusHistories->contains($litigeStatusHistory)) { $this->litigeStatusHistories->add($litigeStatusHistory); $litigeStatusHistory->setStatusid($this); } return $this; } public function removeLitigeStatusHistory(LitigeStatusHistory $litigeStatusHistory): static { if ($this->litigeStatusHistories->removeElement($litigeStatusHistory)) { // set the owning side to null (unless already changed) if ($litigeStatusHistory->getStatusid() === $this) { $litigeStatusHistory->setStatusid(null); } } return $this; }}