src/Entity/Poblacion.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="poblacion")
  7. */
  8. class Poblacion
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\Column(type="integer")
  13. * @ORM\GeneratedValue(strategy="AUTO")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(type="string", nullable=true)
  18. */
  19. private $nombre;
  20. public function getId(): ?int
  21. {
  22. return $this->id;
  23. }
  24. public function setId($id)
  25. {
  26. $this->id = $id;
  27. return $this;
  28. }
  29. public function getNombre(): ?string
  30. {
  31. return $this->nombre;
  32. }
  33. public function setNombre(?string $nombre): self
  34. {
  35. $this->nombre = $nombre;
  36. return $this;
  37. }
  38. }