1 | <?php |
||
8 | abstract class User extends BaseUser |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | * |
||
13 | * @ORM\Column(name="created", type="datetime", nullable=false) |
||
14 | */ |
||
15 | protected $created; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | * |
||
20 | * @ORM\Column(name="activated", type="boolean") |
||
21 | */ |
||
22 | protected $activated; |
||
23 | |||
24 | public function __construct() |
||
33 | |||
34 | public function getWSSEToken() |
||
49 | |||
50 | public function __toString() |
||
54 | |||
55 | public function getParent() |
||
59 | |||
60 | /** |
||
61 | * Gets the value of id. |
||
62 | * |
||
63 | * @return integer |
||
64 | */ |
||
65 | public function getID() |
||
69 | |||
70 | /** |
||
71 | * Sets the value of id. |
||
72 | * |
||
73 | * @param integer $id the id |
||
74 | * |
||
75 | * @return self |
||
76 | */ |
||
77 | protected function setID($id) |
||
83 | |||
84 | /** |
||
85 | * Gets the value of newPassword. |
||
86 | * |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getNewPassword() |
||
93 | |||
94 | /** |
||
95 | * Sets the value of newPassword. |
||
96 | * |
||
97 | * @param string $newPassword the new password |
||
98 | * |
||
99 | * @return self |
||
100 | */ |
||
101 | public function setNewPassword($newPassword) |
||
107 | |||
108 | /** |
||
109 | * Gets the value of uniqid. |
||
110 | * |
||
111 | * @return string |
||
112 | */ |
||
113 | public function getUniqid() |
||
117 | |||
118 | /** |
||
119 | * Sets the value of uniqid. |
||
120 | * |
||
121 | * @param string $uniqid the uniqid |
||
122 | * |
||
123 | * @return self |
||
124 | */ |
||
125 | public function setUniqid($uniqid) |
||
131 | |||
132 | /** |
||
133 | * Gets the value of created. |
||
134 | * |
||
135 | * @return string |
||
136 | */ |
||
137 | public function getCreated() |
||
141 | |||
142 | /** |
||
143 | * Sets the value of created. |
||
144 | * |
||
145 | * @param string $created the subscription date |
||
146 | * |
||
147 | * @return self |
||
148 | */ |
||
149 | public function setCreated($created) |
||
155 | |||
156 | public function isActivated() |
||
160 | |||
161 | public function setActivated($activated) |
||
165 | } |
||
166 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: