src/Entity/Fielpet/View/LocalidadesView.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Fielpet\View;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * LocalidadesView
  7. *
  8. * @ORM\Table(name="localidades_view")
  9. * @ORM\Entity
  10. */
  11. class LocalidadesView
  12. {
  13. /**
  14. * @var int
  15. *
  16. * @ORM\Column(name="id", type="integer", nullable=false)
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="SEQUENCE")
  19. * @ORM\SequenceGenerator(sequenceName="Localidades_id_seq", allocationSize=1, initialValue=1)
  20. */
  21. private $id;
  22. /**
  23. * @var string
  24. *
  25. * @ORM\Column(name="nombre", type="string", length=255, nullable=false)
  26. */
  27. private $nombre;
  28. /**
  29. * @var string
  30. *
  31. * @ORM\Column(name="provincia", type="string", length=255, nullable=false)
  32. */
  33. private $provincia;
  34. /**
  35. * @var string
  36. *
  37. * @ORM\Column(name="codigo_postal", type="string", length=255, nullable=false)
  38. */
  39. private $codigoPostal;
  40. /**
  41. * @var int
  42. *
  43. * @ORM\Column(name="id_portal", type="integer", nullable=false)
  44. */
  45. private $idPortal;
  46. /**
  47. * @var \DateTime
  48. *
  49. * @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
  50. */
  51. private $createdAt;
  52. /**
  53. * @var \DateTime
  54. *
  55. * @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
  56. */
  57. private $updatedAt;
  58. /**
  59. * @return int
  60. */
  61. public function getId(): int
  62. {
  63. return $this->id;
  64. }
  65. /**
  66. * @param int $id
  67. */
  68. public function setId(int $id): void
  69. {
  70. $this->id = $id;
  71. }
  72. /**
  73. * @return string
  74. */
  75. public function getNombre(): string
  76. {
  77. return $this->nombre;
  78. }
  79. /**
  80. * @param string $nombre
  81. */
  82. public function setNombre(string $nombre): void
  83. {
  84. $this->nombre = $nombre;
  85. }
  86. /**
  87. * @return string
  88. */
  89. public function getProvincia(): string
  90. {
  91. return $this->provincia;
  92. }
  93. /**
  94. * @param string $provincia
  95. */
  96. public function setProvincia(string $provincia): void
  97. {
  98. $this->provincia = $provincia;
  99. }
  100. /**
  101. * @return string
  102. */
  103. public function getCodigoPostal(): string
  104. {
  105. return $this->codigoPostal;
  106. }
  107. /**
  108. * @param string $codigoPostal
  109. */
  110. public function setCodigoPostal(string $codigoPostal): void
  111. {
  112. $this->codigoPostal = $codigoPostal;
  113. }
  114. /**
  115. * @return int
  116. */
  117. public function getIdPortal(): int
  118. {
  119. return $this->idPortal;
  120. }
  121. /**
  122. * @param int $idPortal
  123. */
  124. public function setIdPortal(int $idPortal): void
  125. {
  126. $this->idPortal = $idPortal;
  127. }
  128. /**
  129. * @return \DateTime
  130. */
  131. public function getCreatedAt(): \DateTime
  132. {
  133. return $this->createdAt;
  134. }
  135. /**
  136. * @param \DateTime $createdAt
  137. */
  138. public function setCreatedAt(\DateTime $createdAt): void
  139. {
  140. $this->createdAt = $createdAt;
  141. }
  142. /**
  143. * @return \DateTime
  144. */
  145. public function getUpdatedAt(): \DateTime
  146. {
  147. return $this->updatedAt;
  148. }
  149. /**
  150. * @param \DateTime $updatedAt
  151. */
  152. public function setUpdatedAt(\DateTime $updatedAt): void
  153. {
  154. $this->updatedAt = $updatedAt;
  155. }
  156. }