src/Entity/EditEvaluationHistory.php line 10
<?php
namespace App\Entity;
use App\Repository\EditEvaluationHistoryRepository;
use DateTimeImmutable;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: EditEvaluationHistoryRepository::class)]
class EditEvaluationHistory
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne]
#[ORM\JoinColumn(nullable: false)]
private ?User $user = null;
#[ORM\ManyToOne(inversedBy: 'editEvaluationHistories')]
#[ORM\JoinColumn(nullable: false)]
private ?Evaluation $evaluation = null;
#[ORM\Column]
private ?\DateTimeImmutable $updatedAt = null;
public function __construct($user, $evaluation)
{
$this->user = $user;
$this->evaluation = $evaluation;
$this->updatedAt = new DateTimeImmutable();
}
public function getId(): ?int
{
return $this->id;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getEvaluation(): ?Evaluation
{
return $this->evaluation;
}
public function setEvaluation(?Evaluation $evaluation): self
{
$this->evaluation = $evaluation;
return $this;
}
public function getUpdatedAt(): ?\DateTimeImmutable
{
return $this->updatedAt;
}
public function setUpdatedAt(\DateTimeImmutable $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
}