private $email = "";
// Exceptions
- const EXCEPTION_USERNAME_NOT_FOUND = 0xd00;
+ const EXCEPTION_USERNAME_NOT_FOUND = 0xd00;
+ const EXCEPTION_USER_EMAIL_NOT_FOUND = 0xd01;
/**
* Protected constructor
$userInstance = new User();
// Set the username
- $userInstance->setUsername($userName);
+ $userInstance->setUserName($userName);
// Check if the username exists
if (!$userInstance->ifUsernameExists()) {
* @param $userName The username to set
* @return void
*/
- protected final function setUsername ($userName) {
- $this->UserName = $userName;
+ public final function setUserName ($userName) {
+ $this->userName = $userName;
}
/**