src/Entity/ProjectStakeholdersTimesheet.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectStakeholdersTimesheetRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ProjectStakeholdersTimesheetRepository::class)
  7.  */
  8. class ProjectStakeholdersTimesheet
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=ProjectStakeholders::class, inversedBy="projectStakeholdersTimesheets")
  18.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  19.      */
  20.     private $project_stakeholder;
  21.     /**
  22.      * @ORM\Column(type="integer")
  23.      */
  24.     private $year;
  25.     /**
  26.      * @ORM\Column(type="integer")
  27.      */
  28.     private $month;
  29.     /**
  30.      * @ORM\Column(type="json", nullable=true)
  31.      */
  32.     private $worker_day_times = [];
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getProjectStakeholder(): ?ProjectStakeholders
  38.     {
  39.         return $this->project_stakeholder;
  40.     }
  41.     public function setProjectStakeholder(?ProjectStakeholders $project_stakeholder): self
  42.     {
  43.         $this->project_stakeholder $project_stakeholder;
  44.         return $this;
  45.     }
  46.     public function getYear(): ?int
  47.     {
  48.         return $this->year;
  49.     }
  50.     public function setYear(int $year): self
  51.     {
  52.         $this->year $year;
  53.         return $this;
  54.     }
  55.     public function getMonth(): ?int
  56.     {
  57.         return $this->month;
  58.     }
  59.     public function setMonth(int $month): self
  60.     {
  61.         $this->month $month;
  62.         return $this;
  63.     }
  64.     public function getWorkerDayTimes(): ?array
  65.     {
  66.         return $this->worker_day_times;
  67.     }
  68.     public function setWorkerDayTimes(?array $worker_day_times): self
  69.     {
  70.         $this->worker_day_times $worker_day_times;
  71.         return $this;
  72.     }
  73. }