/ Published in: PHP
Object hold md5 and plain password by username
Expand |
Embed | Plain Text
<?php class Password { private $username; private $md5Password; private $clearPassword; /** * Constructor * * Sets up the object * * @param username, md5Password, clearPassword * @return [none] none */ public function __construct($username, $md5Password, $clearPassword) { $this->Setusername($username); $this->Setmd5Password($md5Password); $this->SetclearPassword($clearPassword); } // Getter public function Getusername() { return $this->username; } public function Getmd5Password() { return $this->md5Password; } public function GetclearPassword() { return $this->clearPassword; } public function GetObjectVars() { } // Setter public function Setusername($username) { $this->username = $username; } public function Setmd5Password($md5Password) { $this->md5Password = $md5Password; } public function SetclearPassword($clearPassword) { $this->clearPassword = $clearPassword; } } ?>
You need to login to post a comment.
