Micro-ORM/app/Model/Job.php

19 lines
417 B
PHP

<?php
namespace Fufle\Demo\Model;
use Fufle\Demo\Query\IJobQuery;
use Fufle\Demo\Query\JobQuery;
use Fufle\ORM\Model as BaseModel;
class Job extends BaseModel {
public int $id;
public float $budget;
public static function QueryModel() {
return new JobQuery( static::class );
}
public static function GetLast10() {
return self::QueryAll(self::QueryModel()->GetLast10());
}
}