Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Signup {
- protected $username;
- protected $email;
- protected $password;
- public function __construct($username, $email, $password)
- {
- $this->username = $username;
- $this->email = $email;
- $this->password = $password;
- $this->hashPass();
- }
- protected function hashPass()
- {
- $password = $this->password;
- $hashedPass = password_hash($password, PASSWORD_DEFAULT);
- $this->password = $hashedPass;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement