src/Entity/CampusMaestro.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Core\Entity\Institucion\Campus;
  4. use App\Core\Entity\Maestro;
  5. use App\Repository\CampusMaestroRepository;
  6. use DateTimeInterface;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9. * @ORM\Entity(repositoryClass=CampusMaestroRepository::class)
  10. */
  11. class CampusMaestro
  12. {
  13. const JSON_FIELDS = ['id', 'maestro' => ['id'], 'campus', 'estado', 'email', 'fechaInvitacion', 'nombres', 'apellidos'];
  14. /**
  15. * @ORM\Id
  16. * @ORM\GeneratedValue
  17. * @ORM\Column(type="integer")
  18. */
  19. private $id;
  20. /**
  21. * @ORM\ManyToOne(targetEntity=Maestro::class, inversedBy="campusMaestros")
  22. */
  23. private $maestro;
  24. /**
  25. * @ORM\ManyToOne(targetEntity=Campus::class, inversedBy="estado")
  26. */
  27. private $Campus;
  28. /**
  29. * @ORM\Column(type="integer")
  30. */
  31. private $estado;
  32. /*
  33. * 0: en espera
  34. * 1: aceptado
  35. * 2: rechazado
  36. */
  37. /**
  38. * @ORM\Column(type="string", length=100, nullable=true)
  39. */
  40. private $email;
  41. /**
  42. * @ORM\Column(type="datetime", nullable=true)
  43. */
  44. private $fechaInvitacion;
  45. /**
  46. * @ORM\Column(type="string", length=255, nullable=true)
  47. */
  48. private $nombres;
  49. /**
  50. * @ORM\Column(type="string", length=255, nullable=true)
  51. */
  52. private $apellidos;
  53. public function getId(): ?int
  54. {
  55. return $this->id;
  56. }
  57. public function getMaestro(): ?Maestro
  58. {
  59. return $this->maestro;
  60. }
  61. public function setMaestro(?Maestro $maestro): self
  62. {
  63. $this->maestro = $maestro;
  64. return $this;
  65. }
  66. public function getCampus(): ?Campus
  67. {
  68. return $this->Campus;
  69. }
  70. public function setCampus(?Campus $Campus): self
  71. {
  72. $this->Campus = $Campus;
  73. return $this;
  74. }
  75. public function getEstado(): ?int
  76. {
  77. return $this->estado;
  78. }
  79. public function setEstado(int $estado): self
  80. {
  81. $this->estado = $estado;
  82. return $this;
  83. }
  84. public function getEmail(): ?string
  85. {
  86. return $this->email;
  87. }
  88. public function setEmail(?string $email): self
  89. {
  90. $this->email = $email;
  91. return $this;
  92. }
  93. public function getFechaInvitacion(): ?DateTimeInterface
  94. {
  95. return $this->fechaInvitacion;
  96. }
  97. public function setFechaInvitacion(?DateTimeInterface $fechaInvitacion): self
  98. {
  99. $this->fechaInvitacion = $fechaInvitacion;
  100. return $this;
  101. }
  102. public function getNombres(): ?string
  103. {
  104. return $this->nombres;
  105. }
  106. public function setNombres(?string $nombres): self
  107. {
  108. $this->nombres = $nombres;
  109. return $this;
  110. }
  111. public function getApellidos(): ?string
  112. {
  113. return $this->apellidos;
  114. }
  115. public function setApellidos(?string $apellidos): self
  116. {
  117. $this->apellidos = $apellidos;
  118. return $this;
  119. }
  120. }