<?php
namespace App\Entity;
use App\Repository\TaskTrackingRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TaskTrackingRepository::class)]
class TaskTracking
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(nullable: true)]
private ?\DateTime $created_at = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $latitude = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $longitude = null;
#[ORM\ManyToOne(inversedBy: 'taskTrackings')]
private ?Task $task = null;
public function getId(): ?int
{
return $this->id;
}
public function getCreatedAt(): ?\DateTime
{
return $this->created_at;
}
public function setCreatedAt(?\DateTime $created_at): static
{
$this->created_at = $created_at;
return $this;
}
public function getLatitude(): ?string
{
return $this->latitude;
}
public function setLatitude(?string $latitude): static
{
$this->latitude = $latitude;
return $this;
}
public function getLongitude(): ?string
{
return $this->longitude;
}
public function setLongitude(?string $longitude): static
{
$this->longitude = $longitude;
return $this;
}
public function getTask(): ?Task
{
return $this->task;
}
public function setTask(?Task $task): static
{
$this->task = $task;
return $this;
}
}