some more code examples

This commit is contained in:
kbariotis
2013-05-13 20:48:37 +03:00
parent 73cd3bf9cd
commit a2c33a4c58
3 changed files with 17 additions and 7 deletions

View File

@@ -14,11 +14,11 @@ class User
protected $username;
protected $email;
public function __construct(array $options = null)
public function __construct($id, $username, $email)
{
if (is_array($options)) {
$this->setOptions($options);
}
$this->id = $id;
$this->username = $username;
$this->email = $email;
}
public function getUserId() {