src/Entity/ActividadAutonomo.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ActividadAutonomoRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: ActividadAutonomoRepository::class)]
  6. class ActividadAutonomo
  7. {
  8. #[ORM\Id]
  9. #[ORM\GeneratedValue]
  10. #[ORM\Column(type: 'integer')]
  11. private $id;
  12. #[ORM\Column(type: 'string', length: 255)]
  13. private ?string $nombre = null;
  14. #[ORM\Column(type: 'string', length: 255)]
  15. private ?string $duracion = null;
  16. #[ORM\ManyToOne(targetEntity: Solicitud::class, inversedBy: 'actividadesAutonomo')]
  17. #[ORM\JoinColumn(nullable: false)]
  18. private ?Solicitud $solicitud = null;
  19. public function getId(): ?int
  20. {
  21. return $this->id;
  22. }
  23. public function getNombre(): ?string
  24. {
  25. return $this->nombre;
  26. }
  27. public function setNombre(string $nombre): self
  28. {
  29. $this->nombre = $nombre;
  30. return $this;
  31. }
  32. public function getDuracion(): ?string
  33. {
  34. return $this->duracion;
  35. }
  36. public function setDuracion(string $duracion): self
  37. {
  38. $this->duracion = $duracion;
  39. return $this;
  40. }
  41. public function getSolicitud(): ?Solicitud
  42. {
  43. return $this->solicitud;
  44. }
  45. public function setSolicitud(?Solicitud $solicitud): self
  46. {
  47. $this->solicitud = $solicitud;
  48. return $this;
  49. }
  50. }