Institucion.php
6.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<?php
/**
* Created by PhpStorm.
* User: ubv-cipee
* Date: 29/06/16
* Time: 08:40 AM
*/
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Institucion
*
* @ORM\Table(name="institucion", indexes={@ORM\Index(name="fki_institucion_tipo_institucion", columns={"id_tipo_institucion"}), @ORM\Index(name="eje_parroquia_institucion", columns={"id_eje_parroquia"})})
* @ORM\Entity
*/
class Institucion
{
/**
* @var string
*
* @ORM\Column(name="nombre", type="string", length=250, nullable=false, options={"comment" = "Nombre de la institucion.Debe ser unico, las instituciones que compartan y/o alternen el mismo espacio fisico deben diferenciarse por su nombre. Ej: Alde-Bolivar-Dia, Alde-Bolivar-Noche"})
*/
private $nombre;
/**
* @var string
*
* @ORM\Column(name="direccion", type="text", nullable=false, options={"comment" = "Direccion de ubicacion fisica de la institucion"})
*/
private $direccion;
/**
* @var string
*
* @ORM\Column(name="latitud", type="string", length=12, nullable=true, options={"comment" = "Coordenada geografica en latitud, ángulo entre cualquier punto del planeta tierra y el ecuador"})
*/
private $latitud;
/**
* @var string
*
* @ORM\Column(name="longitud", type="string", length=12, nullable=true, options={"comment" = "Coordenada geografica en longitud, ángulo a lo largo del ecuador desde cualquier punto de la Tierra"})
*/
private $longitud;
/**
* @var string
*
* @ORM\Column(name="telefono", type="decimal", precision=12, scale=0, nullable=true,options={"comment" = "Numero de telefono de la institucion"})
*/
private $telefono;
/**
* @var integer
*
* @ORM\Column(name="id_aldea_sucre", type="integer", nullable=true)
*/
private $idAldeaSucre;
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la institucion"})
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
* @ORM\SequenceGenerator(sequenceName="institucion_id_seq", allocationSize=1, initialValue=1)
*/
private $id;
/**
* @var \AppBundle\Entity\TipoInstitucion
*
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\TipoInstitucion")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="id_tipo_institucion", referencedColumnName="id", nullable=false)
* })
*/
private $idTipoInstitucion;
/**
* @var \AppBundle\Entity\EjeParroquia
*
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\EjeParroquia")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="id_eje_parroquia", referencedColumnName="id", nullable=false)
* })
*/
private $idEjeParroquia;
/**
* Set nombre
*
* @param string $nombre
* @return Institucion
*/
public function setNombre($nombre)
{
$this->nombre = $nombre;
return $this;
}
/**
* Get nombre
*
* @return string
*/
public function getNombre()
{
return $this->nombre;
}
/**
* Set direccion
*
* @param string $direccion
* @return Institucion
*/
public function setDireccion($direccion)
{
$this->direccion = $direccion;
return $this;
}
/**
* Get direccion
*
* @return string
*/
public function getDireccion()
{
return $this->direccion;
}
/**
* Set latitud
*
* @param string $latitud
* @return Institucion
*/
public function setLatitud($latitud)
{
$this->latitud = $latitud;
return $this;
}
/**
* Get latitud
*
* @return string
*/
public function getLatitud()
{
return $this->latitud;
}
/**
* Set longitud
*
* @param string $longitud
* @return Institucion
*/
public function setLongitud($longitud)
{
$this->longitud = $longitud;
return $this;
}
/**
* Get longitud
*
* @return string
*/
public function getLongitud()
{
return $this->longitud;
}
/**
* Set telefono
*
* @param string $telefono
* @return Institucion
*/
public function setTelefono($telefono)
{
$this->telefono = $telefono;
return $this;
}
/**
* Get telefono
*
* @return string
*/
public function getTelefono()
{
return $this->telefono;
}
/**
* Set idAldeaSucre
*
* @param integer $idAldeaSucre
* @return Institucion
*/
public function setIdAldeaSucre($idAldeaSucre)
{
$this->idAldeaSucre = $idAldeaSucre;
return $this;
}
/**
* Get idAldeaSucre
*
* @return integer
*/
public function getIdAldeaSucre()
{
return $this->idAldeaSucre;
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set idTipoInstitucion
*
* @param \AppBundle\Entity\TipoInstitucion $idTipoInstitucion
* @return Institucion
*/
public function setIdTipoInstitucion(\AppBundle\Entity\TipoInstitucion $idTipoInstitucion = null)
{
$this->idTipoInstitucion = $idTipoInstitucion;
return $this;
}
/**
* Get idTipoInstitucion
*
* @return \AppBundle\Entity\TipoInstitucion
*/
public function getIdTipoInstitucion()
{
return $this->idTipoInstitucion;
}
/**
* Set idEjeParroquia
*
* @param \AppBundle\Entity\EjeParroquia $idEjeParroquia
* @return Institucion
*/
public function setIdEjeParroquia(\AppBundle\Entity\EjeParroquia $idEjeParroquia = null)
{
$this->idEjeParroquia = $idEjeParroquia;
return $this;
}
/**
* Get idEjeParroquia
*
* @return \AppBundle\Entity\EjeParroquia
*/
public function getIdEjeParroquia()
{
return $this->idEjeParroquia;
}
public function __toString(){
return $this->getNombre();
}
}