src/Core/Entity/InformacionPerfil/Profesion.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Core\Entity\InformacionPerfil;
  3. use App\Core\Repository\InformacionPerfil\ProfesionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7. * @ORM\Entity(repositoryClass=ProfesionRepository::class)
  8. */
  9. class Profesion
  10. {
  11. const JSON_FIELDS = ['id', 'nombre'];
  12. /**
  13. * @ORM\Id
  14. * @ORM\GeneratedValue
  15. * @ORM\Column(type="integer")
  16. * @Groups("profesion")
  17. */
  18. private $id;
  19. /**
  20. * @ORM\Column(type="string", length=100)
  21. * @Groups("profesion")
  22. */
  23. private $nombre;
  24. public function getId(): ?int
  25. {
  26. return $this->id;
  27. }
  28. public function getNombre(): ?string
  29. {
  30. return $this->nombre;
  31. }
  32. public function setNombre(string $nombre): self
  33. {
  34. $this->nombre = $nombre;
  35. return $this;
  36. }
  37. }