src/Entity/EmployeeSalaryBonusHistory.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EmployeeSalaryBonusHistoryRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=EmployeeSalaryBonusHistoryRepository::class)
  7.  */
  8. class EmployeeSalaryBonusHistory
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=EmployeeHistory::class, inversedBy="employeeSalaryBonusHistories")
  18.      */
  19.     private $history;
  20.     /**
  21.      * @ORM\Column(type="datetime")
  22.      */
  23.     private $startDate;
  24.     /**
  25.      * @ORM\Column(type="datetime")
  26.      */
  27.     private $endDate;
  28.     /**
  29.      * @ORM\Column(type="float")
  30.      */
  31.     private $price;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getHistory(): ?EmployeeHistory
  37.     {
  38.         return $this->history;
  39.     }
  40.     public function setHistory(?EmployeeHistory $history): self
  41.     {
  42.         $this->history $history;
  43.         return $this;
  44.     }
  45.     public function getStartDate(): ?\DateTimeInterface
  46.     {
  47.         return $this->startDate;
  48.     }
  49.     public function setStartDate(\DateTimeInterface $startDate): self
  50.     {
  51.         $this->startDate $startDate;
  52.         return $this;
  53.     }
  54.     public function getEndDate(): ?\DateTimeInterface
  55.     {
  56.         return $this->endDate;
  57.     }
  58.     public function setEndDate(\DateTimeInterface $endDate): self
  59.     {
  60.         $this->endDate $endDate;
  61.         return $this;
  62.     }
  63.     public function getPrice(): ?float
  64.     {
  65.         return $this->price;
  66.     }
  67.     public function setPrice(float $price): self
  68.     {
  69.         $this->price $price;
  70.         return $this;
  71.     }
  72. }