src/Entity/EmployeeHourCount.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EmployeeHourCountRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=EmployeeHourCountRepository::class)
  7.  */
  8. class EmployeeHourCount
  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="employeeHourCounts")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $history;
  21.     /**
  22.      * @ORM\Column(type="date")
  23.      */
  24.     private $date;
  25.     /**
  26.      * @ORM\Column(type="float")
  27.      */
  28.     private $totalHours;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getHistory(): ?EmployeeHistory
  34.     {
  35.         return $this->history;
  36.     }
  37.     public function setHistory(?EmployeeHistory $history): self
  38.     {
  39.         $this->history $history;
  40.         return $this;
  41.     }
  42.     public function getDate(): ?\DateTimeInterface
  43.     {
  44.         return $this->date;
  45.     }
  46.     public function setDate(\DateTimeInterface $date): self
  47.     {
  48.         $this->date $date;
  49.         return $this;
  50.     }
  51.     public function getTotalHours(): ?float
  52.     {
  53.         return $this->totalHours;
  54.     }
  55.     public function setTotalHours(float $totalHours): self
  56.     {
  57.         $this->totalHours $totalHours;
  58.         return $this;
  59.     }
  60. }