<?phpnamespace App\Entity;use App\Repository\LocationRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=LocationRepository::class) */class Location{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="locations") */ private $product; /** * @ORM\ManyToOne(targetEntity=UserPlatform::class, inversedBy="locations") */ private $user; /** * @ORM\Column(type="datetime", nullable=true) */ private $startDate; /** * @ORM\Column(type="datetime", nullable=true) */ private $endDate; /** * @ORM\Column(type="float", nullable=true) */ private $price; /** * @ORM\Column(type="string", length=20, nullable=true) */ private string $status = 'active'; /** * @ORM\Column(type="datetime") */ private $createdAt; public function getId(): ?int { return $this->id; } public function getProduct(): ?Product { return $this->product; } public function setProduct(?Product $product): self { $this->product = $product; return $this; } public function getUser(): ?UserPlatform { return $this->user; } public function setUser(?UserPlatform $user): self { $this->user = $user; return $this; } public function getStartDate(): ?\DateTimeInterface { return $this->startDate; } public function setStartDate(?\DateTimeInterface $startDate): self { $this->startDate = $startDate; return $this; } public function getEndDate(): ?\DateTimeInterface { return $this->endDate; } public function setEndDate(?\DateTimeInterface $endDate): self { $this->endDate = $endDate; return $this; } public function getPrice(): ?float { return $this->price; } public function setPrice(?float $price): self { $this->price = $price; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getStatus(): ?string { return $this->status; } public function setStatus(string $status): self { $this->status = $status; return $this; }}