<?php
namespace Kernel\Entity;
class User {
protected static $tablename = "user";
use \libs\DataContain;
use \libs\DataStorage;
public function __construct() {
$this -> set_fields([
"name", "passhash", "create_at"
]);
}
public function init_by_id(int $id) :bool {
return $this -> init_by_field("id", $id);
}
}