e
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: whwyy
|
||||
* Date: 2018/3/30 0030
|
||||
* Time: 14:39
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
namespace Database;
|
||||
|
||||
|
||||
/**
|
||||
* Interface IOrm
|
||||
* @package Database
|
||||
*/
|
||||
interface IOrm
|
||||
{
|
||||
|
||||
/**
|
||||
* @param $param
|
||||
* @param null $db
|
||||
* @return ActiveRecord
|
||||
*/
|
||||
public static function findOne($param, $db = NULL): mixed;
|
||||
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public static function className(): string;
|
||||
|
||||
|
||||
/**
|
||||
* @return ActiveQuery
|
||||
* return a sql queryBuilder
|
||||
*/
|
||||
public static function find(): ActiveQuery;
|
||||
|
||||
|
||||
/**
|
||||
* @param $dbName
|
||||
* @return Connection
|
||||
*/
|
||||
public static function setDatabaseConnect($dbName): Connection;
|
||||
|
||||
// public static function deleteAll($condition, $attributes);
|
||||
|
||||
// public static function updateAll($condition, $attributes);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user