<?php
namespace App\Entity;
use App\Repository\EmployeeSalaryBonusHistoryRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=EmployeeSalaryBonusHistoryRepository::class)
*/
class EmployeeSalaryBonusHistory
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=EmployeeHistory::class, inversedBy="employeeSalaryBonusHistories")
*/
private $history;
/**
* @ORM\Column(type="datetime")
*/
private $startDate;
/**
* @ORM\Column(type="datetime")
*/
private $endDate;
/**
* @ORM\Column(type="float")
*/
private $price;
public function getId(): ?int
{
return $this->id;
}
public function getHistory(): ?EmployeeHistory
{
return $this->history;
}
public function setHistory(?EmployeeHistory $history): self
{
$this->history = $history;
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 getPrice(): ?float
{
return $this->price;
}
public function setPrice(float $price): self
{
$this->price = $price;
return $this;
}
}