HegreLand/src/Entity/Mission.php

48 lines
748 B
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;
use Doctrine\ORM\Mapping as ORM;
class Mission
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 30)]
private ?string $label = null;
#[ORM\ManyToOne(targetEntity: Requirements::class, inversedBy: 'missions')]
private ?Requirements $requirements = null;
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;
}
}
?>