<?php
namespace App\Entity;
use App\Enum\EmployeePayroll\PaymentType;
use App\Repository\EmployeePayrollRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=EmployeePayrollRepository::class)
*/
class EmployeePayroll
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="paymentType")
*/
private ?PaymentType $paymentType;
/**
* @ORM\Column(type="datetime")
*/
private $startDate;
/**
* @ORM\Column(type="datetime")
*/
private $endDate;
/**
* @ORM\Column(type="float")
*/
private $rate;
/**
* @ORM\Column(type="integer")
*/
private $totalHours;
/**
* @ORM\Column(type="float")
*/
private $totalAmount;
public function getId(): ?int
{
return $this->id;
}
public function getPaymentType(): ?PaymentType
{
return $this->paymentType;
}
public function setPaymentType(?PaymentType $paymentType): self
{
$this->paymentType = $paymentType;
return $this;
}
public function getStartDate(): ?\DateTimeInterface
{
return $this->startDate;
}
public function setStartDate(\DateTimeInterface $startDate): self
{
$this->startDate = $startDate;
return $this;
}
public function getEndDate(): ?\DateTimeInterface
{
return $this->endDate;
}
public function setEndDate(\DateTimeInterface $endDate): self
{
$this->endDate = $endDate;
return $this;
}
public function getRate(): ?float
{
return $this->rate;
}
public function setRate(float $rate): self
{
$this->rate = $rate;
return $this;
}
public function getTotalHours(): ?int
{
return $this->totalHours;
}
public function setTotalHours(int $totalHours): self
{
$this->totalHours = $totalHours;
return $this;
}
public function getTotalAmount(): ?float
{
return $this->totalAmount;
}
public function setTotalAmount(float $totalAmount): self
{
$this->totalAmount = $totalAmount;
return $this;
}
}