mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 09:42:24 +01:00
fix a bug in User
This commit is contained in:
parent
491a8b188a
commit
e8adb1874c
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns;
|
||||
namespace DesignPatterns\DataMapper;
|
||||
|
||||
/**
|
||||
* DataMapper pattern
|
||||
@ -16,7 +16,7 @@ class User
|
||||
|
||||
public function __construct($id, $username, $email)
|
||||
{
|
||||
$this->id = $id;
|
||||
$this->userId = $id;
|
||||
$this->username = $username;
|
||||
$this->email = $email;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user