25 lines
562 B
PHP
25 lines
562 B
PHP
<?php
|
|
class UserData {
|
|
protected $_id, $_username, $_name, $_password, $_usertype;
|
|
|
|
public function __construct($dbRow) {
|
|
$this->_id = $dbRow['_id'];
|
|
$this->_username = $dbRow['username'];
|
|
$this->_name = $dbRow['name'];
|
|
$this->_password = $dbRow['password'];
|
|
$this->_usertype = $dbRow['usertype'];
|
|
}
|
|
|
|
public function getId() {
|
|
return $this->_id;
|
|
}
|
|
|
|
public function getUsername() {
|
|
return $this->_username;
|
|
}
|
|
|
|
public function getName() {
|
|
return $this->_name;
|
|
}
|
|
|
|
} |