From dbe68007578c17805d69457500d64df6a2760f76 Mon Sep 17 00:00:00 2001 From: Sieciech Date: Sat, 27 Feb 2021 00:03:31 +0100 Subject: [PATCH] sta --- index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 47747e4..d0d6ffc 100644 --- a/index.php +++ b/index.php @@ -43,11 +43,13 @@ class JobSql implements ISqlBase { public function Get(): string { return "Select * from jobs where id = :id"; } - + public static function Create() { + return new Job(); + } } class Job extends BaseModel { - private static $sql = new JobSql(); + private static $sql = JobSql::Create(); public function __construct() { parent::__construct( new JobSql() ); }