mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-06-20 01:44:42 +02:00
72 lines
1.3 KiB
PHP
72 lines
1.3 KiB
PHP
![]() |
<?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;
|
||
|
}
|
||
|
}
|