mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-02 13:07:27 +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)
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user