osm-commerces/src/Entity/History.php

72 lines
1.3 KiB
PHP
Raw Normal View History

2025-05-26 11:32:53 +02:00
<?php
namespace App\Entity;
use App\Repository\HistoryRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: HistoryRepository::class)]
class History
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::SMALLINT, nullable: true)]
private ?int $completion_percent = null;
#[ORM\Column]
private ?\DateTime $date_time = null;
#[ORM\ManyToOne(inversedBy: 'histories')]
#[ORM\JoinColumn(nullable: false)]
private ?Place $place_id = null;
public function getId(): ?int
{
return $this->id;
}
public function getCompletionPercent(): ?int
{
return $this->completion_percent;
}
public function setCompletionPercent(?int $completion_percent): static
{
$this->completion_percent = $completion_percent;
return $this;
}
public function getDateTime(): ?\DateTime
{
return $this->date_time;
}
public function setDateTime(\DateTime $date_time): static
{
$this->date_time = $date_time;
return $this;
}
public function getPlaceId(): ?Place
{
return $this->place_id;
}
public function setPlaceId(?Place $place_id): static
{
$this->place_id = $place_id;
return $this;
}
}