src/Entity/ScolarityHistoryEdition.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ScolarityHistoryEditionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassScolarityHistoryEditionRepository::class)]
  6. class ScolarityHistoryEdition
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'scolarityHistoryEditions')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private ?ScolarityHistory $history null;
  15.     #[ORM\ManyToOne(inversedBy'scolarityHistoryEditions')]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private ?User $author null;
  18.     #[ORM\ManyToOne(inversedBy'scolarityHistoryEditions')]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private ?StudentScolarity $scolarity null;
  21.     #[ORM\Column]
  22.     private ?int $initialAmount null;
  23.     #[ORM\Column]
  24.     private ?int $editedAmount null;
  25.     #[ORM\Column]
  26.     private ?\DateTimeImmutable $updatedAt null;
  27.     #[ORM\Column]
  28.     private ?int $type null;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getHistory(): ?ScolarityHistory
  34.     {
  35.         return $this->history;
  36.     }
  37.     public function setHistory(?ScolarityHistory $history): static
  38.     {
  39.         $this->history $history;
  40.         return $this;
  41.     }
  42.     public function getAuthor(): ?User
  43.     {
  44.         return $this->author;
  45.     }
  46.     public function setAuthor(?User $author): static
  47.     {
  48.         $this->author $author;
  49.         return $this;
  50.     }
  51.     public function getScolarity(): ?StudentScolarity
  52.     {
  53.         return $this->scolarity;
  54.     }
  55.     public function setScolarity(?StudentScolarity $scolarity): static
  56.     {
  57.         $this->scolarity $scolarity;
  58.         return $this;
  59.     }
  60.     public function getInitialAmount(): ?int
  61.     {
  62.         return $this->initialAmount;
  63.     }
  64.     public function setInitialAmount(int $initialAmount): static
  65.     {
  66.         $this->initialAmount $initialAmount;
  67.         return $this;
  68.     }
  69.     public function getEditedAmount(): ?int
  70.     {
  71.         return $this->editedAmount;
  72.     }
  73.     public function setEditedAmount(int $editedAmount): static
  74.     {
  75.         $this->editedAmount $editedAmount;
  76.         return $this;
  77.     }
  78.     public function getUpdatedAt(): ?\DateTimeImmutable
  79.     {
  80.         return $this->updatedAt;
  81.     }
  82.     public function setUpdatedAt(\DateTimeImmutable $updatedAt): static
  83.     {
  84.         $this->updatedAt $updatedAt;
  85.         return $this;
  86.     }
  87.     public function getType(): ?int
  88.     {
  89.         return $this->type;
  90.     }
  91.     public function setType(int $type): static
  92.     {
  93.         $this->type $type;
  94.         return $this;
  95.     }
  96. }