fix a bug in User

This commit is contained in:
Trismegiste
2013-07-08 04:22:32 +02:00
parent 491a8b188a
commit e8adb1874c

View File

@@ -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;
}