1 | <?php |
||
21 | class PendingUser extends User |
||
22 | { |
||
23 | protected $intData = array(); |
||
24 | |||
25 | public function getHash() |
||
29 | |||
30 | public function getRegistrationTime() |
||
34 | |||
35 | /** |
||
36 | * Is this user in the Group or a child of that group? |
||
37 | * |
||
38 | * @param string $name The name of the group to check if the user is in |
||
39 | * |
||
40 | * @return boolean True if the user is in the group, false otherwise |
||
41 | */ |
||
42 | public function isInGroupNamed($name) |
||
46 | |||
47 | public function __get($propName) |
||
55 | |||
56 | public function __set($propName, $value) |
||
60 | |||
61 | public function __isset($propName) |
||
65 | |||
66 | /** |
||
67 | * Get the user's password as specified during registration |
||
68 | * |
||
69 | * We need the ability to obtain the user's unhashed plain text password to allow for it to be sent |
||
70 | * to the correct backend which will hash it |
||
71 | * |
||
72 | * @return boolean|string The current password |
||
73 | */ |
||
74 | public function getPassword() |
||
78 | |||
79 | /** |
||
80 | * Serialize the user data into a format usable by the json_encode method |
||
81 | * |
||
82 | * @return array A simple keyed array representing the user |
||
83 | */ |
||
84 | public function jsonSerialize() |
||
98 | |||
99 | public function sendEmail() |
||
119 | |||
120 | public function delete() |
||
123 | } |
||
124 | /* vim: set tabstop=4 shiftwidth=4 expandtab: */ |
||
125 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.