src/Entity/PerfilBusquedaInteres.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity
  6. * @ORM\Table(name="perfil_busqueda_interes")
  7. */
  8. class PerfilBusquedaInteres extends BaseEntity
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity="App\Entity\PropietarioContenido")
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. private $propietarioContenido;
  21. /**
  22. * @ORM\Column(type="json")
  23. */
  24. private $criterios = [];
  25. /**
  26. * @ORM\Column(type="string", length=255, nullable=true)
  27. */
  28. private $nombre;
  29. /**
  30. * @ORM\Column(type="datetime")
  31. */
  32. private $fechaCreacion;
  33. public function __construct()
  34. {
  35. $this->fechaCreacion = new \DateTime();
  36. }
  37. public function getId(): ?int
  38. {
  39. return $this->id;
  40. }
  41. public function getPropietarioContenido(): ?PropietarioContenido
  42. {
  43. return $this->propietarioContenido;
  44. }
  45. public function setPropietarioContenido(?PropietarioContenido $propietarioContenido): self
  46. {
  47. $this->propietarioContenido = $propietarioContenido;
  48. return $this;
  49. }
  50. public function getCriterios(): array
  51. {
  52. return $this->criterios;
  53. }
  54. public function setCriterios(array $criterios): self
  55. {
  56. $this->criterios = $criterios;
  57. return $this;
  58. }
  59. public function getNombre(): ?string
  60. {
  61. return $this->nombre;
  62. }
  63. public function setNombre(?string $nombre): self
  64. {
  65. $this->nombre = $nombre;
  66. return $this;
  67. }
  68. public function getFechaCreacion(): ?\DateTimeInterface
  69. {
  70. return $this->fechaCreacion;
  71. }
  72. public function setFechaCreacion(\DateTimeInterface $fechaCreacion): self
  73. {
  74. $this->fechaCreacion = $fechaCreacion;
  75. return $this;
  76. }
  77. }