| Total Complexity | 5 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class DataAccess extends \suda\orm\DataAccess |
||
| 15 | { |
||
| 16 | |||
| 17 | |||
| 18 | /** |
||
| 19 | * 应用引用 |
||
| 20 | * |
||
| 21 | * @var Application |
||
| 22 | */ |
||
| 23 | protected static $application; |
||
| 24 | |||
| 25 | |||
| 26 | /** |
||
| 27 | * 创建对数据的操作 |
||
| 28 | * |
||
| 29 | * @param string $object |
||
| 30 | * @param Middleware|null $middleware |
||
| 31 | */ |
||
| 32 | public function __construct(string $object, ?Middleware $middleware = null) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * 从变量创建中间件 |
||
| 39 | * |
||
| 40 | * @param object $object |
||
| 41 | * @return DataAccess |
||
| 42 | */ |
||
| 43 | public static function create($object):DataAccess |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * 从应用创建表 |
||
| 54 | * |
||
| 55 | * @param \suda\application\Application $application |
||
| 56 | * @return void |
||
| 57 | */ |
||
| 58 | public static function load(Application $application) |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Get 应用引用 |
||
| 65 | * |
||
| 66 | * @return Application |
||
| 67 | */ |
||
| 68 | public static function application() |
||
| 73 |