src/Entity/ActividadCuentaAjena.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ActividadCuentaAjenaRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: ActividadCuentaAjenaRepository::class)]
  6. class ActividadCuentaAjena
  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 $nombreEmpresa = null;
  14. #[ORM\Column(type: 'string', length: 255)]
  15. private ?string $categoria = null;
  16. #[ORM\Column(type: 'string', length: 255)]
  17. private ?string $duracion = null;
  18. #[ORM\ManyToOne(targetEntity: Solicitud::class, inversedBy: 'actividadesCuentaAjena')]
  19. #[ORM\JoinColumn(nullable: false)]
  20. private ?Solicitud $solicitud = null;
  21. public function getId(): ?int
  22. {
  23. return $this->id;
  24. }
  25. public function getNombreEmpresa(): ?string
  26. {
  27. return $this->nombreEmpresa;
  28. }
  29. public function setNombreEmpresa(string $nombreEmpresa): self
  30. {
  31. $this->nombreEmpresa = $nombreEmpresa;
  32. return $this;
  33. }
  34. public function getCategoria(): ?string
  35. {
  36. return $this->categoria;
  37. }
  38. public function setCategoria(string $categoria): self
  39. {
  40. $this->categoria = $categoria;
  41. return $this;
  42. }
  43. public function getDuracion(): ?string
  44. {
  45. return $this->duracion;
  46. }
  47. public function setDuracion(string $duracion): self
  48. {
  49. $this->duracion = $duracion;
  50. return $this;
  51. }
  52. public function getSolicitud(): ?Solicitud
  53. {
  54. return $this->solicitud;
  55. }
  56. public function setSolicitud(?Solicitud $solicitud): self
  57. {
  58. $this->solicitud = $solicitud;
  59. return $this;
  60. }
  61. }