<?php
namespace App\Entity;
use App\Repository\TourneeTaskRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Ignore;
#[ORM\Entity(repositoryClass: TourneeTaskRepository::class)]
class TourneeTask
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'tourneeTasks')]
#[Ignore]
private ?Task $task = null;
#[ORM\ManyToOne(inversedBy: 'tourneeTasks')]
#[Ignore]
private ?Tournee $tournee = null;
#[ORM\Column(nullable: true)]
private ?int $display_order = null;
public function getId(): ?int
{
return $this->id;
}
public function getTask(): ?Task
{
return $this->task;
}
public function setTask(?Task $task): static
{
$this->task = $task;
return $this;
}
public function getTournee(): ?Tournee
{
return $this->tournee;
}
public function setTournee(?Tournee $tournee): static
{
$this->tournee = $tournee;
return $this;
}
public function getDisplayOrder(): ?int
{
return $this->display_order;
}
public function setDisplayOrder(?int $display_order): static
{
$this->display_order = $display_order;
return $this;
}
}