src/entities/User.php
public static function requestSignup(string $username, string $email, string $password) : User
    {
        $user = new User();
        $user->username = $username;
        $user->email    = $email;
        $user->status   = self::STATUS_WAIT;
        $user->generateEmailConfirmToken();
        $user->generateAuthKey();
        $user->setPassword($password);
        return $user;
    }
public static function requestSignup(string $username, string $email, string $password) : User
    {
        $user = new User();
        $user->username = $username;
        $user->email    = $email;
        $user->status   = self::STATUS_WAIT;
        $user->generateEmailConfirmToken();
        $user->generateAuthKey();
        $user->setPassword($password);
        return $user;
    }
public static function requestSignup ( string $ username , string $ email , string $ password ) : User { $ user = new User ( ) ; $ user -> username = $ username ; $ user -> email = $ email ; $ user -> status = self :: STATUS_WAIT ; $ user -> generateEmailConfirmToken ( ) ; $ user -> generateAuthKey ( ) ; $ user -> setPassword ( $ password ) ; return $ user ; }
Request to sing up a new user.
@param string $username
@param string $email
@param string $password
@return User
Request to sing up a new user .