src/Core/Entity/MaestroCurso.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Core\Entity;
  3. use App\Core\Entity\Curso;
  4. use App\Core\Entity\Maestro;
  5. use App\Core\Entity\Agenda;
  6. use App\Core\Entity\Institucion\Seccion;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9. * @ORM\Entity(repositoryClass="App\Core\Repository\MaestroCursoRepository")
  10. */
  11. class MaestroCurso
  12. {
  13. /**
  14. * @ORM\Id()
  15. * @ORM\GeneratedValue()
  16. * @ORM\Column(type="integer")
  17. */
  18. private $id;
  19. /**
  20. * @ORM\ManyToOne(targetEntity="App\Core\Entity\Maestro", inversedBy="maestroCursos")
  21. * @ORM\JoinColumn(nullable=false)
  22. */
  23. private $maestro;
  24. /**
  25. * @ORM\ManyToOne(targetEntity="App\Core\Entity\Curso", inversedBy="maestrosCurso")
  26. * @ORM\JoinColumn(nullable=false)
  27. */
  28. private $curso;
  29. /**
  30. * @ORM\OneToOne(targetEntity="App\Core\Entity\Agenda", cascade={"persist", "remove"})
  31. * @ORM\JoinColumn(nullable=false)
  32. */
  33. private $agenda;
  34. /**
  35. * @ORM\Column(type="boolean", nullable=true)
  36. */
  37. private $principal;
  38. /**
  39. * @ORM\ManyToOne(targetEntity="App\Core\Entity\Institucion\Seccion", inversedBy="maestroCursos")
  40. * @ORM\JoinColumn(nullable=true)
  41. */
  42. private $seccion;
  43. public function getId(): ?int
  44. {
  45. return $this->id;
  46. }
  47. public function getMaestro(): ?Maestro
  48. {
  49. return $this->maestro;
  50. }
  51. public function setMaestro(?Maestro $maestro): self
  52. {
  53. $this->maestro = $maestro;
  54. return $this;
  55. }
  56. public function getCurso(): ?Curso
  57. {
  58. return $this->curso;
  59. }
  60. public function setCurso(?Curso $curso): self
  61. {
  62. $this->curso = $curso;
  63. return $this;
  64. }
  65. public function getAgenda(): ?Agenda
  66. {
  67. return $this->agenda;
  68. }
  69. public function setAgenda(Agenda $agenda): self
  70. {
  71. $this->agenda = $agenda;
  72. return $this;
  73. }
  74. public function getPrincipal(): ?bool
  75. {
  76. return $this->principal;
  77. }
  78. public function setPrincipal(bool $principal): self
  79. {
  80. $this->principal = $principal;
  81. return $this;
  82. }
  83. public function getSeccion(): ?Seccion
  84. {
  85. return $this->seccion;
  86. }
  87. public function setSeccion(?Seccion $seccion): self
  88. {
  89. $this->seccion = $seccion;
  90. return $this;
  91. }
  92. }