src/Entity/TaskLog.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TaskLogRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Doctrine\ORM\Mapping\EntityListeners;
  6. /**
  7.  * @ORM\Entity(repositoryClass=TaskLogRepository::class)
  8.  * @ORM\HasLifecycleCallbacks()
  9.  */
  10. class TaskLog
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Task::class, inversedBy="taskLogs")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $task;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="taskLogs")
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $user;
  28.     /**
  29.      * @ORM\Column(type="datetime")
  30.      */
  31.     private $dueDate;
  32.     /**
  33.      * @ORM\Column(type="integer")
  34.      */
  35.     private $workedMinutes;
  36.     /**
  37.      * @ORM\Column(type="text", nullable=true)
  38.      */
  39.     private $description;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getTask(): ?Task
  45.     {
  46.         return $this->task;
  47.     }
  48.     public function setTask(?Task $task): self
  49.     {
  50.         $this->task $task;
  51.         return $this;
  52.     }
  53.     public function getUser(): ?User
  54.     {
  55.         return $this->user;
  56.     }
  57.     public function setUser(?User $user): self
  58.     {
  59.         $this->user $user;
  60.         return $this;
  61.     }
  62.     public function getDueDate(): ?\DateTimeInterface
  63.     {
  64.         return $this->dueDate;
  65.     }
  66.     public function setDueDate(\DateTimeInterface $dueDate): self
  67.     {
  68.         $this->dueDate $dueDate;
  69.         return $this;
  70.     }
  71.     public function getWorkedMinutes(): ?int
  72.     {
  73.         return $this->workedMinutes;
  74.     }
  75.     public function setWorkedMinutes(int $workedMinutes): self
  76.     {
  77.         $this->workedMinutes $workedMinutes;
  78.         return $this;
  79.     }
  80.     public function getDescription(): ?string
  81.     {
  82.         return $this->description;
  83.     }
  84.     public function setDescription(?string $description): self
  85.     {
  86.         $this->description $description;
  87.         return $this;
  88.     }
  89. }