src/Entity/EmployeePayroll.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Enum\EmployeePayroll\PaymentType;
  4. use App\Repository\EmployeePayrollRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=EmployeePayrollRepository::class)
  8.  */
  9. class EmployeePayroll
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="paymentType")
  19.      */
  20.     private ?PaymentType $paymentType;
  21.     /**
  22.      * @ORM\Column(type="datetime")
  23.      */
  24.     private $startDate;
  25.     /**
  26.      * @ORM\Column(type="datetime")
  27.      */
  28.     private $endDate;
  29.     /**
  30.      * @ORM\Column(type="float")
  31.      */
  32.     private $rate;
  33.     /**
  34.      * @ORM\Column(type="integer")
  35.      */
  36.     private $totalHours;
  37.     /**
  38.      * @ORM\Column(type="float")
  39.      */
  40.     private $totalAmount;
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getPaymentType(): ?PaymentType
  46.     {
  47.         return $this->paymentType;
  48.     }
  49.     public function setPaymentType(?PaymentType $paymentType): self
  50.     {
  51.         $this->paymentType $paymentType;
  52.         return $this;
  53.     }
  54.     public function getStartDate(): ?\DateTimeInterface
  55.     {
  56.         return $this->startDate;
  57.     }
  58.     public function setStartDate(\DateTimeInterface $startDate): self
  59.     {
  60.         $this->startDate $startDate;
  61.         return $this;
  62.     }
  63.     public function getEndDate(): ?\DateTimeInterface
  64.     {
  65.         return $this->endDate;
  66.     }
  67.     public function setEndDate(\DateTimeInterface $endDate): self
  68.     {
  69.         $this->endDate $endDate;
  70.         return $this;
  71.     }
  72.     public function getRate(): ?float
  73.     {
  74.         return $this->rate;
  75.     }
  76.     public function setRate(float $rate): self
  77.     {
  78.         $this->rate $rate;
  79.         return $this;
  80.     }
  81.     public function getTotalHours(): ?int
  82.     {
  83.         return $this->totalHours;
  84.     }
  85.     public function setTotalHours(int $totalHours): self
  86.     {
  87.         $this->totalHours $totalHours;
  88.         return $this;
  89.     }
  90.     public function getTotalAmount(): ?float
  91.     {
  92.         return $this->totalAmount;
  93.     }
  94.     public function setTotalAmount(float $totalAmount): self
  95.     {
  96.         $this->totalAmount $totalAmount;
  97.         return $this;
  98.     }
  99. }