DRY things up a bit

This commit is contained in:
James LaChance
2016-09-17 23:51:58 -04:00
parent 8f54955452
commit 5189a7342c

View File

@@ -33,9 +33,9 @@ class User
*/ */
public function __construct($id = null, $username = null, $email = null) public function __construct($id = null, $username = null, $email = null)
{ {
$this->userId = $id; $this->setUserID($id);
$this->username = $username; $this->setUsername($username);
$this->email = $email; $this->setEmail($email);
} }
/** /**