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