<?php
namespace App\Entity;
use App\Repository\StaffLeaveAllotmentRepository;
use Gedmo\Mapping\Annotation as Gedmo;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: StaffLeaveAllotmentRepository::class), ORM\Table(name: 'staff_leave_allotments')]
class StaffLeaveAllotment
{
#[ORM\Id, ORM\GeneratedValue, ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'integer'), Assert\NotBlank]
private $leaveYear;
#[ORM\Column(type: 'float'), Assert\NotBlank]
private $elNum;
#[ORM\Column(type: 'string', length: 100)]
private $elDoc;
#[ORM\Column(type: 'float'), Assert\NotBlank]
private $mlNum;
#[ORM\Column(type: 'string', length: 100)]
private $mlDoc;
#[ORM\Column(type: 'float'), Assert\NotBlank]
private $hplNum;
#[ORM\Column(type: 'string', length: 100)]
private $hplDoc;
#[ORM\Column(type: 'float'), Assert\NotBlank]
private $lwpNum;
#[ORM\Column(type: 'string', length: 100)]
private $lwpDoc;
#[ORM\Column(type: 'float'), Assert\NotBlank]
private $clNum;
#[ORM\ManyToOne(targetEntity: StaffProfile::class, inversedBy: 'leaveAllotments'), ORM\JoinColumn(nullable: false)]
private $profile;
#[Gedmo\Timestampable(on: 'create'), ORM\Column(type: 'datetime')]
private $createdAt;
#[Gedmo\Timestampable(on: 'update'), ORM\Column(type: 'datetime')]
private $updatedAt;
public function getId(): ?int
{
return $this->id;
}
public function getLeaveYear(): ?int
{
return $this->leaveYear;
}
public function setLeaveYear(int $leaveYear): self
{
$this->leaveYear = $leaveYear;
return $this;
}
public function getElNum(): ?float
{
return $this->elNum;
}
public function setElNum(float $elNum): self
{
$this->elNum = $elNum;
return $this;
}
public function getElDoc(): ?string
{
return $this->elDoc;
}
public function setElDoc(string $elDoc): self
{
$this->elDoc = strip_tags($elDoc);
return $this;
}
public function getMlNum(): ?float
{
return $this->mlNum;
}
public function setMlNum(float $mlNum): self
{
$this->mlNum = $mlNum;
return $this;
}
public function getMlDoc(): ?string
{
return $this->mlDoc;
}
public function setMlDoc(string $mlDoc): self
{
$this->mlDoc = strip_tags($mlDoc);
return $this;
}
public function getHplNum(): ?float
{
return $this->hplNum;
}
public function setHplNum(float $hplNum): self
{
$this->hplNum = $hplNum;
return $this;
}
public function getHplDoc(): ?string
{
return $this->hplDoc;
}
public function setHplDoc(string $hplDoc): self
{
$this->hplDoc = strip_tags($hplDoc);
return $this;
}
public function getLwpNum(): ?float
{
return $this->lwpNum;
}
public function setLwpNum(float $lwpNum): self
{
$this->lwpNum = $lwpNum;
return $this;
}
public function getLwpDoc(): ?string
{
return $this->lwpDoc;
}
public function setLwpDoc(string $lwpDoc): self
{
$this->lwpDoc = strip_tags($lwpDoc);
return $this;
}
public function getClNum(): ?float
{
return $this->clNum;
}
public function setClNum(float $clNum): self
{
$this->clNum = strip_tags($clNum);
return $this;
}
public function getProfile(): ?StaffProfile
{
return $this->profile;
}
public function setProfile(?StaffProfile $profile): self
{
$this->profile = $profile;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
}