src/Entity/StaffSalaryHistory.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StaffSalaryHistoryRepository;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. #[ORM\Entity(repositoryClassStaffSalaryHistoryRepository::class), ORM\Table(name'staff_salary_histories')]
  8. class StaffSalaryHistory
  9. {
  10.     #[ORM\IdORM\GeneratedValueORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityStaffProfile::class, inversedBy'salaryHistories'), ORM\JoinColumn(nullablefalse)]
  13.     private $profile;
  14.     #[ORM\ManyToOne(targetEntityDesignationSetting::class), ORM\JoinColumn(name'designation_setting_id'nullablefalse)]
  15.     #[Assert\NotBlank]
  16.     private $designation;
  17.     #[ORM\Column(type'string'length100), Assert\NotBlank]
  18.     private $centerName;
  19.     #[ORM\Column(type'string'length100), Assert\NotBlank]
  20.     private $duration;
  21.     #[ORM\Column(type'float'), Assert\NotBlank]
  22.     private $lastPay;
  23.     #[ORM\Column(type'string'length100), Assert\NotBlank]
  24.     private $payGrade;
  25.     #[ORM\Column(type'float'), Assert\NotBlank]
  26.     private $gradePay;
  27.     #[ORM\Column(type'float'), Assert\NotBlank]
  28.     private $basicPay;
  29.     #[ORM\Column(type'float'nullabletrue)]
  30.     private int $increment 0;
  31.     #[ORM\Column(type'float'nullabletrue)]
  32.     private int $npa 0;
  33.     #[ORM\Column(type'float'nullabletrue)]
  34.     private int $hra 0;
  35.     #[ORM\Column(type'float'), Assert\NotBlank]
  36.     private $da;
  37.     #[ORM\Column(type'float'nullabletrue)]
  38.     private $allowance1;
  39.     #[ORM\Column(type'float'nullabletrue)]
  40.     private $allowance2;
  41.     #[ORM\Column(type'float'nullabletrue)]
  42.     private $allowance3;
  43.     #[ORM\Column(type'float'), Assert\NotBlank]
  44.     private $tds;
  45.     #[ORM\Column(type'float'nullabletrue)]
  46.     private $cpf;
  47.     #[ORM\Column(type'float'nullabletrue)]
  48.     private $epf;
  49.     #[ORM\Column(type'float'nullabletrue)]
  50.     private $gpf;
  51.     #[ORM\Column(type'float'nullabletrue)]
  52.     private $loan;
  53.     #[ORM\Column(type'float'nullabletrue)]
  54.     private $insurance;
  55.     #[ORM\Column(type'float'nullabletrue)]
  56.     private $deduction1;
  57.     #[ORM\Column(type'float'nullabletrue)]
  58.     private $deduction2;
  59.     #[ORM\Column(type'float'nullabletrue)]
  60.     private $deduction3;
  61.     #[ORM\Column(type'float'nullabletrue)]
  62.     private $deduction4;
  63.     #[ORM\Column(type'float'), Assert\NotBlank]
  64.     private $totalPay;
  65.     #[ORM\Column(type'float')]
  66.     private $profTax;
  67.     #[ORM\Column(type'float'nullabletrue)]
  68.     private $incentive;
  69.     #[ORM\Column(type'float'nullabletrue)]
  70.     private $conveyance;
  71.     #[ORM\Column(type'float'nullabletrue)]
  72.     private $medical;
  73.     #[ORM\Column(type'float'nullabletrue)]
  74.     private $fixPay;
  75.     #[ORM\Column(type'float'nullabletrue)]
  76.     private $specialPay;
  77.     #[ORM\Column(type'string'length100nullabletrue)]
  78.     private $transferOrder;
  79.     #[Gedmo\Timestampable(on'create'), ORM\Column(type'datetime')]
  80.     private $createdAt;
  81.     #[Gedmo\Timestampable(on'update'), ORM\Column(type'datetime')]
  82.     private $updatedAt;
  83.     public function getId(): ?int
  84.     {
  85.         return $this->id;
  86.     }
  87.     public function getProfile(): ?StaffProfile
  88.     {
  89.         return $this->profile;
  90.     }
  91.     public function setProfile(?StaffProfile $profile): self
  92.     {
  93.         $this->profile $profile;
  94.         return $this;
  95.     }
  96.     public function getDesignation(): ?DesignationSetting
  97.     {
  98.         return $this->designation;
  99.     }
  100.     public function setDesignation(DesignationSetting $designation): self
  101.     {
  102.         $this->designation $designation;
  103.         return $this;
  104.     }
  105.     public function getCenterName(): ?string
  106.     {
  107.         return $this->centerName;
  108.     }
  109.     public function setCenterName(string $centerName): self
  110.     {
  111.         $this->centerName strip_tags($centerName);
  112.         return $this;
  113.     }
  114.     public function getDuration(): ?string
  115.     {
  116.         return $this->duration;
  117.     }
  118.     public function setDuration(string $duration): self
  119.     {
  120.         $this->duration strip_tags($duration);
  121.         return $this;
  122.     }
  123.     public function getLastPay(): ?float
  124.     {
  125.         return $this->lastPay;
  126.     }
  127.     public function setLastPay(float $lastPay): self
  128.     {
  129.         $this->lastPay strip_tags($lastPay);
  130.         return $this;
  131.     }
  132.     public function getPayGrade(): ?string
  133.     {
  134.         return $this->payGrade;
  135.     }
  136.     public function setPayGrade(string $payGrade): self
  137.     {
  138.         $this->payGrade strip_tags($payGrade);
  139.         return $this;
  140.     }
  141.     public function getGradePay(): ?float
  142.     {
  143.         return $this->gradePay;
  144.     }
  145.     public function setGradePay(float $gradePay): self
  146.     {
  147.         $this->gradePay strip_tags($gradePay);
  148.         return $this;
  149.     }
  150.     public function getBasicPay(): ?float
  151.     {
  152.         return $this->basicPay;
  153.     }
  154.     public function setBasicPay(float $basicPay): self
  155.     {
  156.         $this->basicPay strip_tags($basicPay);
  157.         return $this;
  158.     }
  159.     public function getIncrement(): ?float
  160.     {
  161.         return $this->increment;
  162.     }
  163.     public function setIncrement(float $increment): self
  164.     {
  165.         $this->increment $increment;
  166.         return $this;
  167.     }
  168.     public function getNpa(): ?float
  169.     {
  170.         return $this->npa;
  171.     }
  172.     public function setNpa(float $npa): self
  173.     {
  174.         $this->npa $npa;
  175.         return $this;
  176.     }
  177.     public function getHra(): ?float
  178.     {
  179.         return $this->hra;
  180.     }
  181.     public function setHra(float $hra): self
  182.     {
  183.         $this->hra $hra;
  184.         return $this;
  185.     }
  186.     public function getDa(): ?float
  187.     {
  188.         return $this->da;
  189.     }
  190.     public function setDa(float $da): self
  191.     {
  192.         $this->da strip_tags($da);
  193.         return $this;
  194.     }
  195.     public function getAllowance1(): ?float
  196.     {
  197.         return $this->allowance1;
  198.     }
  199.     public function setAllowance1(?float $allowance1): self
  200.     {
  201.         $this->allowance1 strip_tags($allowance1);
  202.         return $this;
  203.     }
  204.     public function getAllowance2(): ?float
  205.     {
  206.         return $this->allowance2;
  207.     }
  208.     public function setAllowance2(?float $allowance2): self
  209.     {
  210.         $this->allowance2 strip_tags($allowance2);
  211.         return $this;
  212.     }
  213.     public function getAllowance3(): ?float
  214.     {
  215.         return $this->allowance3;
  216.     }
  217.     public function setAllowance3(?float $allowance3): self
  218.     {
  219.         $this->allowance3 strip_tags($allowance3);
  220.         return $this;
  221.     }
  222.     public function getTds(): ?float
  223.     {
  224.         return $this->tds;
  225.     }
  226.     public function setTds(float $tds): self
  227.     {
  228.         $this->tds strip_tags($tds);
  229.         return $this;
  230.     }
  231.     public function getCpf(): ?float
  232.     {
  233.         return $this->cpf;
  234.     }
  235.     public function setCpf(?float $cpf): self
  236.     {
  237.         $this->cpf strip_tags($cpf);
  238.         return $this;
  239.     }
  240.     public function getEpf(): ?float
  241.     {
  242.         return $this->epf;
  243.     }
  244.     public function setEpf(?float $epf): self
  245.     {
  246.         $this->epf strip_tags($epf);
  247.         return $this;
  248.     }
  249.     public function getGpf(): ?float
  250.     {
  251.         return $this->gpf;
  252.     }
  253.     public function setGpf(?float $gpf): self
  254.     {
  255.         $this->gpf strip_tags($gpf);
  256.         return $this;
  257.     }
  258.     public function getLoan(): ?float
  259.     {
  260.         return $this->loan;
  261.     }
  262.     public function setLoan(?float $loan): self
  263.     {
  264.         $this->loan strip_tags($loan);
  265.         return $this;
  266.     }
  267.     public function getInsurance(): ?float
  268.     {
  269.         return $this->insurance;
  270.     }
  271.     public function setInsurance(?float $insurance): self
  272.     {
  273.         $this->insurance strip_tags($insurance);
  274.         return $this;
  275.     }
  276.     public function getDeduction1(): ?float
  277.     {
  278.         return $this->deduction1;
  279.     }
  280.     public function setDeduction1(?float $deduction1): self
  281.     {
  282.         $this->deduction1 strip_tags($deduction1);
  283.         return $this;
  284.     }
  285.     public function getDeduction2(): ?float
  286.     {
  287.         return $this->deduction2;
  288.     }
  289.     public function setDeduction2(?float $deduction2): self
  290.     {
  291.         $this->deduction2 strip_tags($deduction2);
  292.         return $this;
  293.     }
  294.     public function getDeduction3(): ?float
  295.     {
  296.         return $this->deduction3;
  297.     }
  298.     public function setDeduction3(?float $deduction3): self
  299.     {
  300.         $this->deduction3 strip_tags($deduction3);
  301.         return $this;
  302.     }
  303.     public function getDeduction4(): ?float
  304.     {
  305.         return $this->deduction4;
  306.     }
  307.     public function setDeduction4(?float $deduction4): self
  308.     {
  309.         $this->deduction4 strip_tags($deduction4);
  310.         return $this;
  311.     }
  312.     public function getTotalPay(): ?float
  313.     {
  314.         return $this->totalPay;
  315.     }
  316.     public function setTotalPay(float $totalPay): self
  317.     {
  318.         $this->totalPay strip_tags($totalPay);
  319.         return $this;
  320.     }
  321.     public function getProfTax(): ?float
  322.     {
  323.         return $this->profTax;
  324.     }
  325.     public function setProfTax(float $profTax): self
  326.     {
  327.         $this->profTax strip_tags($profTax);
  328.         return $this;
  329.     }
  330.     public function getIncentive(): ?float
  331.     {
  332.         return $this->incentive;
  333.     }
  334.     public function setIncentive(?float $incentive): self
  335.     {
  336.         $this->incentive strip_tags($incentive);
  337.         return $this;
  338.     }
  339.     public function getConveyance(): ?float
  340.     {
  341.         return $this->conveyance;
  342.     }
  343.     public function setConveyance(?float $conveyance): self
  344.     {
  345.         $this->conveyance strip_tags($conveyance);
  346.         return $this;
  347.     }
  348.     public function getMedical(): ?float
  349.     {
  350.         return $this->medical;
  351.     }
  352.     public function setMedical(?float $medical): self
  353.     {
  354.         $this->medical strip_tags($medical);
  355.         return $this;
  356.     }
  357.     public function getFixPay(): ?float
  358.     {
  359.         return $this->fixPay;
  360.     }
  361.     public function setFixPay(?float $fixPay): self
  362.     {
  363.         $this->fixPay strip_tags($fixPay);
  364.         return $this;
  365.     }
  366.     public function getSpecialPay(): ?float
  367.     {
  368.         return $this->specialPay;
  369.     }
  370.     public function setSpecialPay(?float $specialPay): self
  371.     {
  372.         $this->specialPay strip_tags($specialPay);
  373.         return $this;
  374.     }
  375.     public function getTransferOrder(): ?string
  376.     {
  377.         return $this->transferOrder;
  378.     }
  379.     public function setTransferOrder(?string $transferOrder): self
  380.     {
  381.         $this->transferOrder strip_tags($transferOrder);
  382.         return $this;
  383.     }
  384.     public function getCreatedAt(): ?\DateTimeInterface
  385.     {
  386.         return $this->createdAt;
  387.     }
  388.     public function getUpdatedAt(): ?\DateTimeInterface
  389.     {
  390.         return $this->updatedAt;
  391.     }
  392. }