Created
December 16, 2016 08:50
-
-
Save elmarputz/3522b1e1d31d7457a121484ec5f1cede to your computer and use it in GitHub Desktop.
User.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* User | |
* | |
* | |
* @extends Entity | |
* @package | |
* @subpackage | |
* @author John Doe <jd@fbi.gov> | |
*/ | |
class User extends Entity { | |
private $userName; | |
private $passwordHash; | |
public function __construct($id, $userName, $passwordHash) { | |
parent::__construct($id); | |
$this->userName = $userName; | |
$this->passwordHash = $passwordHash; | |
} | |
/** | |
* getter for the private parameter $userName | |
* | |
* @return string | |
*/ | |
public function getUserName() { | |
return $this->userName; | |
} | |
/** | |
* getter for the private parameter $passwordHash | |
* | |
* @return string | |
*/ | |
public function getPasswordHash() { | |
return $this->passwordHash; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment