1 | <?php |
||
14 | class Admin extends BaseUser |
||
15 | { |
||
16 | /** |
||
17 | * @var integer |
||
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 | public static function getRoleString($key) |
||
69 | |||
70 | /** |
||
71 | * Gets the value of id. |
||
72 | * |
||
73 | * @return integer |
||
74 | */ |
||
75 | public function getID() |
||
79 | |||
80 | /** |
||
81 | * Sets the value of id. |
||
82 | * |
||
83 | * @param integer $id the id |
||
84 | * |
||
85 | * @return self |
||
86 | */ |
||
87 | public function setID($id) |
||
93 | |||
94 | /** |
||
95 | * Gets the value of firstname. |
||
96 | * |
||
97 | * @return string |
||
98 | */ |
||
99 | public function getFirstname() |
||
103 | |||
104 | /** |
||
105 | * Sets the value of firstname. |
||
106 | * |
||
107 | * @param string $firstname the firstname |
||
108 | * |
||
109 | * @return self |
||
110 | */ |
||
111 | public function setFirstname($firstname) |
||
117 | |||
118 | /** |
||
119 | * Gets the value of lastname. |
||
120 | * |
||
121 | * @return string |
||
122 | */ |
||
123 | public function getLastname() |
||
127 | |||
128 | /** |
||
129 | * Sets the value of lastname. |
||
130 | * |
||
131 | * @param string $lastname the lastname |
||
132 | * |
||
133 | * @return self |
||
134 | */ |
||
135 | public function setLastname($lastname) |
||
141 | } |
||
142 |