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 | * Set the user's email address |
||
81 | * |
||
82 | * @param string $email The user's new email address |
||
83 | * |
||
84 | * @return boolean true if the user's email address was changed, false otherwise |
||
85 | */ |
||
86 | public function setEmail($email) |
||
91 | |||
92 | /** |
||
93 | * Set the user's given (first) name |
||
94 | * |
||
95 | * @param string $givenName The user's new given name |
||
96 | * |
||
97 | * @return boolean true if the user's given name was changed, false otherwise |
||
98 | */ |
||
99 | public function setGivenName($givenName) |
||
104 | |||
105 | /** |
||
106 | * Set the user's last name |
||
107 | * |
||
108 | * @param string $sn The user's new last name |
||
109 | * |
||
110 | * @return boolean true if the user's last name was changed, false otherwise |
||
111 | */ |
||
112 | public function setLastName($sn) |
||
117 | |||
118 | /** |
||
119 | * Serialize the user data into a format usable by the json_encode method |
||
120 | * |
||
121 | * @return array A simple keyed array representing the user |
||
122 | */ |
||
123 | public function jsonSerialize() |
||
137 | |||
138 | public function sendEmail() |
||
158 | |||
159 | public function delete() |
||
162 | } |
||
163 | /* vim: set tabstop=4 shiftwidth=4 expandtab: */ |
||
164 |
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.