src/Entity/TeacherHoursBonus.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TeacherHoursBonusRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=TeacherHoursBonusRepository::class)
  7. */
  8. class TeacherHoursBonus
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=Teacher::class, inversedBy="teacherHoursBonuses")
  18. */
  19. private $teacher;
  20. /**
  21. * @ORM\Column(type="integer", nullable=true)
  22. */
  23. private $hours;
  24. /**
  25. * @ORM\Column(type="text", nullable=true)
  26. */
  27. private $comment;
  28. /**
  29. * @ORM\Column(type="datetime", nullable=true)
  30. */
  31. private $createdAt;
  32. /**
  33. * @ORM\ManyToOne(targetEntity=Admin::class, inversedBy="teacherHoursBonuses")
  34. */
  35. private $admin;
  36. public function getId(): ?int
  37. {
  38. return $this->id;
  39. }
  40. public function getTeacher(): ?Teacher
  41. {
  42. return $this->teacher;
  43. }
  44. public function setTeacher(?Teacher $teacher): self
  45. {
  46. $this->teacher = $teacher;
  47. return $this;
  48. }
  49. public function getHours(): ?int
  50. {
  51. return $this->hours;
  52. }
  53. public function setHours(?int $hours): self
  54. {
  55. $this->hours = $hours;
  56. return $this;
  57. }
  58. public function getComment(): ?string
  59. {
  60. return $this->comment;
  61. }
  62. public function setComment(?string $comment): self
  63. {
  64. $this->comment = $comment;
  65. return $this;
  66. }
  67. public function getCreatedAt(): ?\DateTimeInterface
  68. {
  69. return $this->createdAt;
  70. }
  71. public function setCreatedAt(?\DateTimeInterface $createdAt): self
  72. {
  73. $this->createdAt = $createdAt;
  74. return $this;
  75. }
  76. public function getAdmin(): ?Admin
  77. {
  78. return $this->admin;
  79. }
  80. public function setAdmin(?Admin $admin): self
  81. {
  82. $this->admin = $admin;
  83. return $this;
  84. }
  85. }