diff options
Diffstat (limited to 'src/web/core/_model.php')
-rw-r--r-- | src/web/core/_model.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/web/core/_model.php b/src/web/core/_model.php index 4c27b1b..57127de 100644 --- a/src/web/core/_model.php +++ b/src/web/core/_model.php @@ -2,19 +2,20 @@ abstract class Model { // the main model // shared by all controllers and models - public $main; - public $load; + public Main_model $main; + public Loader $load; // the database - public $db; + public DatabaseHelper $db; - private $config; + private mixed $config; /** * Creates a model * @param Loader $load - the main loader object - */ - function __construct($load, $main = FALSE) { + * @param ?Main_model $main + */ + function __construct(Loader $load, bool $main = FALSE) { $this->load = $load; if ($main) { $this->main = $this; |