src/Entity/EmpresaPropietarioContenido.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\HttpFoundation\File\File;
  6. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  7. /**
  8. * @ORM\Entity
  9. */
  10. #[Vich\Uploadable]
  11. class EmpresaPropietarioContenido extends \App\Entity\PropietarioContenido
  12. {
  13. protected $foto;
  14. /**
  15. * @var File
  16. */
  17. #[Vich\UploadableField(mapping: 'propietario', fileNameProperty: 'foto')]
  18. protected $fotoFile;
  19. /**
  20. * @ORM\ManyToOne(targetEntity=\App\Entity\Empresa::class, inversedBy="empresaPropietarioContenidos")
  21. * @ORM\JoinColumn(name="empresa_id", referencedColumnName="id")
  22. */
  23. private $empresa;
  24. /**
  25. * @ORM\Column(type="string", length=50, nullable=true)
  26. */
  27. private $estado;
  28. /**
  29. * @ORM\Column(type="string", length=50, nullable=true)
  30. */
  31. private $tipoSolicitud;
  32. /**
  33. * @ORM\Column(type="datetime", nullable=true)
  34. */
  35. private $fechaInvitacion;
  36. /**
  37. * @ORM\Column(type="datetime", nullable=true)
  38. */
  39. private $fechaActivacion;
  40. /**
  41. * @ORM\Column(type="string", length=255, nullable=true)
  42. */
  43. private $token;
  44. /**
  45. * @ORM\Column(type="string", length=50, nullable=true)
  46. */
  47. private $perfil;
  48. /**
  49. * @ORM\Column(type="string", length=50, nullable=true, name="estado_autorizacion_cursos")
  50. */
  51. private $estadoAutorizacionCursos;
  52. /**
  53. * @ORM\Column(type="string", length=255, nullable=true, name="token_autorizacion_cursos")
  54. */
  55. private $tokenAutorizacionCursos;
  56. /**
  57. * @ORM\Column(type="datetime", nullable=true, name="fecha_solicitud_autorizacion_cursos")
  58. */
  59. private $fechaSolicitudAutorizacionCursos;
  60. public function getEmpresa(): ?Empresa
  61. {
  62. return $this->empresa;
  63. }
  64. public function setEmpresa(?Empresa $empresa): static
  65. {
  66. $this->empresa = $empresa;
  67. return $this;
  68. }
  69. public function getFoto(): ?string
  70. {
  71. return $this->foto;
  72. }
  73. public function setFoto(?string $foto): static
  74. {
  75. $this->foto = $foto;
  76. return $this;
  77. }
  78. public function getEstado(): ?string
  79. {
  80. return $this->estado;
  81. }
  82. public function setEstado(?string $estado): static
  83. {
  84. $this->estado = $estado;
  85. return $this;
  86. }
  87. public function getTipoSolicitud(): ?string
  88. {
  89. return $this->tipoSolicitud;
  90. }
  91. public function setTipoSolicitud(?string $tipoSolicitud): static
  92. {
  93. $this->tipoSolicitud = $tipoSolicitud;
  94. return $this;
  95. }
  96. public function getFechaInvitacion(): ?\DateTimeInterface
  97. {
  98. return $this->fechaInvitacion;
  99. }
  100. public function setFechaInvitacion(?\DateTimeInterface $fechaInvitacion): static
  101. {
  102. $this->fechaInvitacion = $fechaInvitacion;
  103. return $this;
  104. }
  105. public function getFechaActivacion(): ?\DateTimeInterface
  106. {
  107. return $this->fechaActivacion;
  108. }
  109. public function setFechaActivacion(?\DateTimeInterface $fechaActivacion): static
  110. {
  111. $this->fechaActivacion = $fechaActivacion;
  112. return $this;
  113. }
  114. public function getToken(): ?string
  115. {
  116. return $this->token;
  117. }
  118. public function setToken(?string $token): static
  119. {
  120. $this->token = $token;
  121. return $this;
  122. }
  123. public function getPerfil(): ?string
  124. {
  125. return $this->perfil;
  126. }
  127. public function setPerfil(?string $perfil): static
  128. {
  129. $this->perfil = $perfil;
  130. return $this;
  131. }
  132. public function getEstadoAutorizacionCursos(): ?string
  133. {
  134. return $this->estadoAutorizacionCursos;
  135. }
  136. public function setEstadoAutorizacionCursos(?string $estadoAutorizacionCursos): static
  137. {
  138. $this->estadoAutorizacionCursos = $estadoAutorizacionCursos;
  139. return $this;
  140. }
  141. public function getTokenAutorizacionCursos(): ?string
  142. {
  143. return $this->tokenAutorizacionCursos;
  144. }
  145. public function setTokenAutorizacionCursos(?string $tokenAutorizacionCursos): static
  146. {
  147. $this->tokenAutorizacionCursos = $tokenAutorizacionCursos;
  148. return $this;
  149. }
  150. public function getFechaSolicitudAutorizacionCursos(): ?\DateTimeInterface
  151. {
  152. return $this->fechaSolicitudAutorizacionCursos;
  153. }
  154. public function setFechaSolicitudAutorizacionCursos(?\DateTimeInterface $fechaSolicitudAutorizacionCursos): static
  155. {
  156. $this->fechaSolicitudAutorizacionCursos = $fechaSolicitudAutorizacionCursos;
  157. return $this;
  158. }
  159. }