src/Asistencia/Entity/Objetivo.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Asistencia\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity(repositoryClass="App\Asistencia\Repository\ObjetivoRepository")
  6. */
  7. class Objetivo
  8. {
  9. /**
  10. * @ORM\Id()
  11. * @ORM\GeneratedValue()
  12. * @ORM\Column(type="integer")
  13. */
  14. private $id;
  15. /**
  16. * @ORM\ManyToOne(targetEntity="App\Asistencia\Entity\Clase", inversedBy="objetivos")
  17. * @ORM\JoinColumn(nullable=false)
  18. */
  19. private $clase;
  20. /**
  21. * @ORM\Column(type="string", length=255, nullable=true)
  22. */
  23. private $descripcion;
  24. public function getId(): ?int
  25. {
  26. return $this->id;
  27. }
  28. public function getClase(): ?Clase
  29. {
  30. return $this->clase;
  31. }
  32. public function setClase(?Clase $clase): self
  33. {
  34. $this->clase = $clase;
  35. return $this;
  36. }
  37. public function getDescripcion(): ?string
  38. {
  39. return $this->descripcion;
  40. }
  41. public function setDescripcion(string $descripcion): self
  42. {
  43. $this->descripcion = $descripcion;
  44. return $this;
  45. }
  46. }