src/Entity/GuardianRegister/GuardianRegisterChildPreference.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\GuardianRegister;
  3. use App\Entity\Discipline;
  4. use App\Entity\Teacher;
  5. use App\Repository\GuardianRegister\GuardianRegisterChildPreferenceRepository;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * @ORM\Entity(repositoryClass=GuardianRegisterChildPreferenceRepository::class)
  9. */
  10. class GuardianRegisterChildPreference
  11. {
  12. /**
  13. * @ORM\Id
  14. * @ORM\GeneratedValue
  15. * @ORM\Column(type="integer")
  16. */
  17. private $id;
  18. /**
  19. * @ORM\ManyToOne(targetEntity=GuardianRegisterChild::class, inversedBy="guardianRegisterChildPreferences")
  20. */
  21. private $guardianRegisterChild;
  22. /**
  23. * @ORM\ManyToOne(targetEntity=Discipline::class, inversedBy="guardianRegisterChildPreferences")
  24. */
  25. private $discipline;
  26. /**
  27. * @ORM\Column(type="integer", nullable=true)
  28. */
  29. private $duration;
  30. /**
  31. * @ORM\Column(type="integer", nullable=true)
  32. */
  33. private $amount;
  34. /**
  35. * @ORM\Column(type="text", nullable=true)
  36. */
  37. private $comment = "DabartinÄ— situacija:
  38. Tikslas:
  39. Nuo kada netenkina situacija:
  40. Kita info:";
  41. /**
  42. * @ORM\ManyToOne(targetEntity=Teacher::class)
  43. */
  44. private $teacher;
  45. /**
  46. * @ORM\Column(type="datetime", nullable=true)
  47. */
  48. private $startTime;
  49. public function getId(): ?int
  50. {
  51. return $this->id;
  52. }
  53. public function getGuardianRegisterChild(): ?GuardianRegisterChild
  54. {
  55. return $this->guardianRegisterChild;
  56. }
  57. public function setGuardianRegisterChild(?GuardianRegisterChild $guardianRegisterChild): self
  58. {
  59. $this->guardianRegisterChild = $guardianRegisterChild;
  60. return $this;
  61. }
  62. public function getDiscipline(): ?Discipline
  63. {
  64. return $this->discipline;
  65. }
  66. public function setDiscipline(?Discipline $discipline): self
  67. {
  68. $this->discipline = $discipline;
  69. return $this;
  70. }
  71. public function getDuration(): ?int
  72. {
  73. return $this->duration;
  74. }
  75. public function setDuration(?int $duration): self
  76. {
  77. $this->duration = $duration;
  78. return $this;
  79. }
  80. public function getAmount(): ?int
  81. {
  82. return $this->amount;
  83. }
  84. public function setAmount(?int $amount): self
  85. {
  86. $this->amount = $amount;
  87. return $this;
  88. }
  89. public function getComment(): ?string
  90. {
  91. return $this->comment;
  92. }
  93. public function setComment(?string $comment): self
  94. {
  95. $this->comment = $comment;
  96. return $this;
  97. }
  98. public function getTeacher(): ?Teacher
  99. {
  100. return $this->teacher;
  101. }
  102. public function setTeacher(?Teacher $teacher): self
  103. {
  104. $this->teacher = $teacher;
  105. return $this;
  106. }
  107. public function getStartTime(): ?\DateTimeInterface
  108. {
  109. return $this->startTime;
  110. }
  111. public function setStartTime(?\DateTimeInterface $startTime): self
  112. {
  113. $this->startTime = $startTime;
  114. return $this;
  115. }
  116. }