This commit is contained in:
Michał Sieciechowicz 2021-02-27 00:03:31 +01:00
parent 17090c6738
commit dbe6800757
1 changed files with 4 additions and 2 deletions

View File

@ -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() );
}