<?php
namespace App\Entity;
use App\Repository\ScolarityHistoryEditionRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ScolarityHistoryEditionRepository::class)]
class ScolarityHistoryEdition
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'scolarityHistoryEditions')]
#[ORM\JoinColumn(nullable: false)]
private ?ScolarityHistory $history = null;
#[ORM\ManyToOne(inversedBy: 'scolarityHistoryEditions')]
#[ORM\JoinColumn(nullable: false)]
private ?User $author = null;
#[ORM\ManyToOne(inversedBy: 'scolarityHistoryEditions')]
#[ORM\JoinColumn(nullable: false)]
private ?StudentScolarity $scolarity = null;
#[ORM\Column]
private ?int $initialAmount = null;
#[ORM\Column]
private ?int $editedAmount = null;
#[ORM\Column]
private ?\DateTimeImmutable $updatedAt = null;
#[ORM\Column]
private ?int $type = null;
public function getId(): ?int
{
return $this->id;
}
public function getHistory(): ?ScolarityHistory
{
return $this->history;
}
public function setHistory(?ScolarityHistory $history): static
{
$this->history = $history;
return $this;
}
public function getAuthor(): ?User
{
return $this->author;
}
public function setAuthor(?User $author): static
{
$this->author = $author;
return $this;
}
public function getScolarity(): ?StudentScolarity
{
return $this->scolarity;
}
public function setScolarity(?StudentScolarity $scolarity): static
{
$this->scolarity = $scolarity;
return $this;
}
public function getInitialAmount(): ?int
{
return $this->initialAmount;
}
public function setInitialAmount(int $initialAmount): static
{
$this->initialAmount = $initialAmount;
return $this;
}
public function getEditedAmount(): ?int
{
return $this->editedAmount;
}
public function setEditedAmount(int $editedAmount): static
{
$this->editedAmount = $editedAmount;
return $this;
}
public function getUpdatedAt(): ?\DateTimeImmutable
{
return $this->updatedAt;
}
public function setUpdatedAt(\DateTimeImmutable $updatedAt): static
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getType(): ?int
{
return $this->type;
}
public function setType(int $type): static
{
$this->type = $type;
return $this;
}
}