<?php
namespace App\Entity;
use App\Repository\EmployeeHourCountRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=EmployeeHourCountRepository::class)
*/
class EmployeeHourCount
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=EmployeeHistory::class, inversedBy="employeeHourCounts")
* @ORM\JoinColumn(nullable=false)
*/
private $history;
/**
* @ORM\Column(type="date")
*/
private $date;
/**
* @ORM\Column(type="float")
*/
private $totalHours;
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 getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getTotalHours(): ?float
{
return $this->totalHours;
}
public function setTotalHours(float $totalHours): self
{
$this->totalHours = $totalHours;
return $this;
}
}