src/Entity/TeacherPaymentBonusProposal.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TeacherPaymentBonusProposalRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=TeacherPaymentBonusProposalRepository::class)
  7. */
  8. class TeacherPaymentBonusProposal
  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)
  30. */
  31. private $admin;
  32. /**
  33. * @ORM\Column(type="string", length=255, nullable=true)
  34. */
  35. private $status = 'NEW';
  36. /**
  37. * @ORM\ManyToOne(targetEntity=Teacher::class, inversedBy="teacherPaymentBonusProposals")
  38. */
  39. private $teacher;
  40. public function __construct()
  41. {
  42. $this->createdAt = new \DateTime();
  43. }
  44. public function getId(): ?int
  45. {
  46. return $this->id;
  47. }
  48. public function getAmount(): ?float
  49. {
  50. return $this->amount;
  51. }
  52. public function setAmount(?float $amount): self
  53. {
  54. $this->amount = $amount;
  55. return $this;
  56. }
  57. public function getComment(): ?string
  58. {
  59. return $this->comment;
  60. }
  61. public function setComment(?string $comment): self
  62. {
  63. $this->comment = $comment;
  64. return $this;
  65. }
  66. public function getCreatedAt(): ?\DateTimeInterface
  67. {
  68. return $this->createdAt;
  69. }
  70. public function setCreatedAt(?\DateTimeInterface $createdAt): self
  71. {
  72. $this->createdAt = $createdAt;
  73. return $this;
  74. }
  75. public function getAdmin(): ?Admin
  76. {
  77. return $this->admin;
  78. }
  79. public function setAdmin(?Admin $admin): self
  80. {
  81. $this->admin = $admin;
  82. return $this;
  83. }
  84. public function getStatus(): ?string
  85. {
  86. return $this->status;
  87. }
  88. public function setStatus(?string $status): self
  89. {
  90. $this->status = $status;
  91. return $this;
  92. }
  93. public function getTeacher(): ?Teacher
  94. {
  95. return $this->teacher;
  96. }
  97. public function setTeacher(?Teacher $teacher): self
  98. {
  99. $this->teacher = $teacher;
  100. return $this;
  101. }
  102. }