<?phpnamespace App\Entity;use App\Repository\TaskFulfillmentReasonsRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;/** * @ORM\Entity(repositoryClass=TaskFulfillmentReasonsRepository::class) */class TaskFulfillmentReasons{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") * @Groups({ * "task_fulfillment_reason@base", * "task_fulfillment_reason@core", * }) */ private $id; /** * @ORM\Column(type="string", length=64) * @Groups({ * "task_fulfillment_reason@base", * "task_fulfillment_reason@core" * }) */ private $alias; /** * @ORM\Column(type="string", length=255, nullable=true) * @Groups({ * "task_fulfillment_reason@core" * }) */ private $description; /** * @ORM\OneToMany(targetEntity=ProjectOrderTaskFulfillment::class, mappedBy="reason") */ private $project_order_task_fulfillments; public function __construct() { $this->project_order_task_fulfillments = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getAlias(): ?string { return $this->alias; } public function setAlias(string $alias): self { $this->alias = $alias; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; } /** * @return Collection<int, ProjectOrderTaskFulfillment> */ public function getProjectOrderTaskFulfillments(): Collection { return $this->project_order_task_fulfillments; } public function addProjectOrderTaskFulfillment(ProjectOrderTaskFulfillment $projectOrderTaskFulfillment): self { if (!$this->project_order_task_fulfillments->contains($projectOrderTaskFulfillment)) { $this->project_order_task_fulfillments[] = $projectOrderTaskFulfillment; $projectOrderTaskFulfillment->setReason($this); } return $this; } public function removeProjectOrderTaskFulfillment(ProjectOrderTaskFulfillment $projectOrderTaskFulfillment): self { if ($this->project_order_task_fulfillments->removeElement($projectOrderTaskFulfillment)) { // set the owning side to null (unless already changed) if ($projectOrderTaskFulfillment->getReason() === $this) { $projectOrderTaskFulfillment->setReason(null); } } return $this; }}