<?php
namespace App\Entity;
use Symfony\Component\Serializer\Annotation\Groups;
use App\Repository\LeaveMCRecordRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: LeaveMCRecordRepository::class)]
class LeaveMCRecord
{
#[Groups(['LogService'])]
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[Groups(['LogService'])]
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'leaveMCRecords')]
#[ORM\JoinColumn(nullable: false)]
private $user;
#[Groups(['LogService'])]
#[ORM\Column(type: 'datetime')]
private $startDate;
#[Groups(['LogService'])]
#[ORM\Column(type: 'datetime')]
private $endDate;
#[Groups(['LogService'])]
#[ORM\Column(type: 'integer')]
private $days;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $fileUpload;
#[Groups(['LogService'])]
#[ORM\Column(type: 'text', nullable: true)]
private $comment;
#[ORM\Column(type: 'datetime')]
private $createdAt;
#[ORM\Column(type: 'string', length: 128)]
private $createdBy;
#[ORM\Column(type: 'datetime', nullable: true)]
private $updatedAt;
#[ORM\Column(type: 'string', length: 128, nullable: true)]
private $updatedBy;
#[Groups(['LogService'])]
#[ORM\Column(type: 'boolean', nullable: true)]
private $isJustified;
#[ORM\Column(type: 'integer', nullable: true)]
private $reviewedBy;
#[Groups(['LogService'])]
#[ORM\Column(type: 'text', nullable: true)]
private $note;
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 getStartDate(): ?\DateTime
{
return $this->startDate;
}
public function setStartDate(\DateTime $startDate): self
{
$this->startDate = $startDate;
return $this;
}
public function getEndDate(): ?\DateTime
{
return $this->endDate;
}
public function setEndDate(\DateTime $endDate): self
{
$this->endDate = $endDate;
return $this;
}
public function getDays(): ?int
{
return $this->days;
}
public function setDays(int $days): self
{
$this->days = $days;
return $this;
}
public function getFileUpload(): ?string
{
return $this->fileUpload;
}
public function setFileUpload(string $fileUpload): self
{
$this->fileUpload = $fileUpload;
return $this;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(?string $comment): self
{
$this->comment = $comment;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getCreatedBy(): ?string
{
return $this->createdBy;
}
public function setCreatedBy(string $createdBy): self
{
$this->createdBy = $createdBy;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getUpdatedBy(): ?string
{
return $this->updatedBy;
}
public function setUpdatedBy(?string $updatedBy): self
{
$this->updatedBy = $updatedBy;
return $this;
}
public function getIsJustified(): ?bool
{
return $this->isJustified;
}
public function setIsJustified(bool $isJustified): self
{
$this->isJustified = $isJustified;
return $this;
}
public function getReviewedBy(): ?int
{
return $this->reviewedBy;
}
public function setReviewedBy(?int $reviewedBy): self
{
$this->reviewedBy = $reviewedBy;
return $this;
}
public function getNote(): ?string
{
return $this->note;
}
public function setNote(?string $note): self
{
$this->note = $note;
return $this;
}
}