src/Asistencia/Entity/Meta.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Asistencia\Entity;
  3. use App\Core\Entity\EstudianteCurso;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass="App\Asistencia\Repository\MetaRepository")
  7. */
  8. class Meta
  9. {
  10. /**
  11. * @ORM\Id()
  12. * @ORM\GeneratedValue()
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(type="string", length=255)
  18. */
  19. private $descripcion;
  20. /**
  21. * @ORM\ManyToOne(targetEntity="App\Core\Entity\EstudianteCurso", inversedBy="metas")
  22. * @ORM\JoinColumn(nullable=false)
  23. */
  24. private $asignacion;
  25. /**
  26. * @ORM\Column(type="datetime")
  27. */
  28. private $fecha;
  29. public function getId(): ?int
  30. {
  31. return $this->id;
  32. }
  33. public function getDescripcion(): ?string
  34. {
  35. return $this->descripcion;
  36. }
  37. public function setDescripcion(string $descripcion): self
  38. {
  39. $this->descripcion = $descripcion;
  40. return $this;
  41. }
  42. public function getAsignacion(): ?EstudianteCurso
  43. {
  44. return $this->asignacion;
  45. }
  46. public function setAsignacion(?EstudianteCurso $asignacion): self
  47. {
  48. $this->asignacion = $asignacion;
  49. return $this;
  50. }
  51. public function getFecha(): ?\DateTimeInterface
  52. {
  53. return $this->fecha;
  54. }
  55. public function setFecha(\DateTimeInterface $fecha): self
  56. {
  57. $this->fecha = $fecha;
  58. return $this;
  59. }
  60. }