Commit 0cfc1e2569025bdff6dcc41e8c6501561ae93a70
1 parent
c4133cbd7b
Exists in
master
añadida la entidad de tipo de documentos para la verificacion de los documentos subidos
Showing
1 changed file
with
84 additions
and
0 deletions
Show diff stats
src/AppBundle/Entity/TipoDocumentos.php
@@ -0,0 +1,84 @@ | @@ -0,0 +1,84 @@ | ||
1 | +<?php | ||
2 | +/** | ||
3 | + * Created by PhpStorm. | ||
4 | + * User: Wilmer Ramones | ||
5 | + * Date: 01/03/17 | ||
6 | + * Time: 07:52 AM | ||
7 | + */ | ||
8 | + | ||
9 | +namespace AppBundle\Entity; | ||
10 | + | ||
11 | +use Doctrine\ORM\Mapping as ORM; | ||
12 | + | ||
13 | +/** | ||
14 | + * TipoDocumentos | ||
15 | + * | ||
16 | + * @ORM\Table(name="tipo_documentos", uniqueConstraints={@ORM\UniqueConstraint(name="uq_nombre_documento", columns={"nombre"})}) | ||
17 | + * @ORM\Entity | ||
18 | + */ | ||
19 | +class TipoDocumentos | ||
20 | +{ | ||
21 | + /** | ||
22 | + * @var string | ||
23 | + * | ||
24 | + * @ORM\Column(name="nombre", type="string", length=255, nullable=false, options={"comment" = "Nombre del tipo de documento"}) | ||
25 | + */ | ||
26 | + private $nombre; | ||
27 | + | ||
28 | + /** | ||
29 | + * @var integer | ||
30 | + * | ||
31 | + * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador del tipo de area"}) | ||
32 | + * @ORM\Id | ||
33 | + * @ORM\GeneratedValue(strategy="IDENTITY") | ||
34 | + * @ORM\SequenceGenerator(sequenceName="tipo_documento_id_seq", allocationSize=1, initialValue=1) | ||
35 | + */ | ||
36 | + private $id; | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + /** | ||
41 | + * Set nombre | ||
42 | + * | ||
43 | + * @param string $nombre | ||
44 | + * @return TipoArea | ||
45 | + */ | ||
46 | + public function setNombre($nombre) | ||
47 | + { | ||
48 | + $this->nombre = $nombre; | ||
49 | + | ||
50 | + return $this; | ||
51 | + } | ||
52 | + | ||
53 | + /** | ||
54 | + * Get nombre | ||
55 | + * | ||
56 | + * @return string | ||
57 | + */ | ||
58 | + public function getNombre() | ||
59 | + { | ||
60 | + return $this->nombre; | ||
61 | + } | ||
62 | + | ||
63 | + /** | ||
64 | + * Get id | ||
65 | + * | ||
66 | + * @return integer | ||
67 | + */ | ||
68 | + public function getId() | ||
69 | + { | ||
70 | + return $this->id; | ||
71 | + } | ||
72 | + | ||
73 | + /** | ||
74 | + * Get nombre | ||
75 | + * | ||
76 | + * @return string | ||
77 | + */ | ||
78 | + public function __toString() | ||
79 | + { | ||
80 | + return $this->nombre; | ||
81 | + } | ||
82 | + | ||
83 | + | ||
84 | +} |