Skip to content

Instantly share code, notes, and snippets.

@elmarputz
Created December 16, 2016 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elmarputz/3522b1e1d31d7457a121484ec5f1cede to your computer and use it in GitHub Desktop.
Save elmarputz/3522b1e1d31d7457a121484ec5f1cede to your computer and use it in GitHub Desktop.
User.php
<?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