Created comment object

This commit is contained in:
Pierre
2018-04-21 14:48:02 +02:00
parent 217c6c4213
commit e20403e8ab
3 changed files with 138 additions and 19 deletions

View File

@ -6,26 +6,11 @@
* @author Pierre HUBERT
*/
class BaseUserModel {
//Need the BaseUniqueObject class
require_once __DIR__."/BaseUniqueObject.php";
//Private fields
private $userID = 0;
abstract class BaseUserModel extends BaseUniqueObject {
//Set and get user ID
public function set_id(int $id){
$this->id = $id;
}
//Nothing yet
public function get_id() : int {
return $this->id;
}
/**
* Check wether this object is valid or not
*
* @return bool TRUE if this object is valid / FALSE else
*/
public function isValid() : bool {
return $this->id > 0;
}
}