src/Entity/TeacherPaymentBonus.php line 11

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