mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-01 20:50:15 +02:00
DRY things up a bit
This commit is contained in:
@@ -33,9 +33,9 @@ class User
|
||||
*/
|
||||
public function __construct($id = null, $username = null, $email = null)
|
||||
{
|
||||
$this->userId = $id;
|
||||
$this->username = $username;
|
||||
$this->email = $email;
|
||||
$this->setUserID($id);
|
||||
$this->setUsername($username);
|
||||
$this->setEmail($email);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user