1 | <?php |
||
14 | class Admin extends BaseUser |
||
15 | { |
||
16 | /** |
||
17 | * @var int |
||
18 | * |
||
19 | * @ORM\Id |
||
20 | * @ORM\Column(name="admin_id", type="integer", nullable=false) |
||
21 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
22 | */ |
||
23 | protected $id; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | * |
||
28 | * @ORM\Column(name="firstname", type="string", length=150, nullable=false) |
||
29 | */ |
||
30 | protected $firstname; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | * |
||
35 | * @ORM\Column(name="lastname", type="string", length=150, nullable=false) |
||
36 | */ |
||
37 | protected $lastname; |
||
38 | |||
39 | public function __construct() |
||
43 | |||
44 | public function __toString() |
||
48 | |||
49 | public function getParent() |
||
53 | |||
54 | /** |
||
55 | * Gets the value of id. |
||
56 | * |
||
57 | * @return int |
||
58 | */ |
||
59 | public function getID() |
||
63 | |||
64 | /** |
||
65 | * Sets the value of id. |
||
66 | * |
||
67 | * @param int $id the id |
||
68 | * |
||
69 | * @return self |
||
70 | */ |
||
71 | public function setID($id) |
||
77 | |||
78 | /** |
||
79 | * Gets the value of firstname. |
||
80 | * |
||
81 | * @return string |
||
82 | */ |
||
83 | public function getFirstname() |
||
87 | |||
88 | /** |
||
89 | * Sets the value of firstname. |
||
90 | * |
||
91 | * @param string $firstname the firstname |
||
92 | * |
||
93 | * @return self |
||
94 | */ |
||
95 | public function setFirstname($firstname) |
||
101 | |||
102 | /** |
||
103 | * Gets the value of lastname. |
||
104 | * |
||
105 | * @return string |
||
106 | */ |
||
107 | public function getLastname() |
||
111 | |||
112 | /** |
||
113 | * Sets the value of lastname. |
||
114 | * |
||
115 | * @param string $lastname the lastname |
||
116 | * |
||
117 | * @return self |
||
118 | */ |
||
119 | public function setLastname($lastname) |
||
125 | } |
||
126 |