Change ModelMySQL atributes to strong typed.

This commit is contained in:
kj 2022-03-22 04:30:47 -04:00
parent 4cd7850931
commit 97380b2bee
1 changed files with 9 additions and 10 deletions

View File

@ -17,16 +17,15 @@ use mysqli;
class ModelMySQL {
public $id;
protected $toNull = [];
static protected $primaryKey = 'id';
static protected $ignoreSave = ['id'];
static protected $forceSave = [];
static protected $table;
static protected $tableSufix = 's';
static protected $db;
static protected $querySelect = [
public int $id;
protected array $toNull = [];
static protected string $primaryKey = 'id';
static protected array $ignoreSave = ['id'];
static protected array $forceSave = [];
static protected string $table;
static protected string $tableSufix = 's';
static protected ?mysqli $db = null;
static protected array $querySelect = [
'select' => ['*'],
'where' => '',
'from' => '',