Change ModelMySQL atributes to strong typed.
This commit is contained in:
parent
4cd7850931
commit
97380b2bee
@ -17,16 +17,15 @@ use mysqli;
|
|||||||
|
|
||||||
class ModelMySQL {
|
class ModelMySQL {
|
||||||
|
|
||||||
public $id;
|
public int $id;
|
||||||
protected $toNull = [];
|
protected array $toNull = [];
|
||||||
|
static protected string $primaryKey = 'id';
|
||||||
static protected $primaryKey = 'id';
|
static protected array $ignoreSave = ['id'];
|
||||||
static protected $ignoreSave = ['id'];
|
static protected array $forceSave = [];
|
||||||
static protected $forceSave = [];
|
static protected string $table;
|
||||||
static protected $table;
|
static protected string $tableSufix = 's';
|
||||||
static protected $tableSufix = 's';
|
static protected ?mysqli $db = null;
|
||||||
static protected $db;
|
static protected array $querySelect = [
|
||||||
static protected $querySelect = [
|
|
||||||
'select' => ['*'],
|
'select' => ['*'],
|
||||||
'where' => '',
|
'where' => '',
|
||||||
'from' => '',
|
'from' => '',
|
||||||
|
Loading…
Reference in New Issue
Block a user