<?phpnamespace App\Entity;use App\Repository\TaskLogRepository;use Doctrine\ORM\Mapping as ORM;use Doctrine\ORM\Mapping\EntityListeners;/** * @ORM\Entity(repositoryClass=TaskLogRepository::class) * @ORM\HasLifecycleCallbacks() */class TaskLog{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Task::class, inversedBy="taskLogs") * @ORM\JoinColumn(nullable=false) */ private $task; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="taskLogs") * @ORM\JoinColumn(nullable=false) */ private $user; /** * @ORM\Column(type="datetime") */ private $dueDate; /** * @ORM\Column(type="integer") */ private $workedMinutes; /** * @ORM\Column(type="text", nullable=true) */ private $description; public function getId(): ?int { return $this->id; } public function getTask(): ?Task { return $this->task; } public function setTask(?Task $task): self { $this->task = $task; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getDueDate(): ?\DateTimeInterface { return $this->dueDate; } public function setDueDate(\DateTimeInterface $dueDate): self { $this->dueDate = $dueDate; return $this; } public function getWorkedMinutes(): ?int { return $this->workedMinutes; } public function setWorkedMinutes(int $workedMinutes): self { $this->workedMinutes = $workedMinutes; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; }}