DbObject: Fix return type of get & list methods
This commit is contained in:
parent
18adcc4bb0
commit
214545cfc2
1 changed files with 2 additions and 2 deletions
|
@ -225,7 +225,7 @@ class DbObject {
|
||||||
* @param array<mixed> $args Primary keys value in the same order as primary keys as declared
|
* @param array<mixed> $args Primary keys value in the same order as primary keys as declared
|
||||||
* @see static :: PRIMARY_KEYS
|
* @see static :: PRIMARY_KEYS
|
||||||
* @throws DbException
|
* @throws DbException
|
||||||
* @return DbObject|null The object if found, else otherwise.
|
* @return static|null The object if found, else otherwise.
|
||||||
*/
|
*/
|
||||||
public static function get(...$args) {
|
public static function get(...$args) {
|
||||||
$class = get_called_class();
|
$class = get_called_class();
|
||||||
|
@ -340,7 +340,7 @@ class DbObject {
|
||||||
/**
|
/**
|
||||||
* List objects
|
* List objects
|
||||||
* @param array<string,mixed> $where Where clauses as associative array of field name and value
|
* @param array<string,mixed> $where Where clauses as associative array of field name and value
|
||||||
* @return array<DbObject>|false
|
* @return array<static>|false
|
||||||
*/
|
*/
|
||||||
public static function list($where=null) {
|
public static function list($where=null) {
|
||||||
$class = get_called_class();
|
$class = get_called_class();
|
||||||
|
|
Loading…
Reference in a new issue