Passed
Push — master ( a325c0...46b506 )
by 世昌
02:20
created

TableStructMiddlewareTrait::createMiddleware()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
namespace suda\orm\struct;
3
4
use suda\orm\TableStruct;
5
use suda\orm\middleware\Middleware;
6
use suda\orm\struct\TableStructMiddleware;
7
8
/**
9
 * 感知表结构
10
 */
11
trait TableStructMiddlewareTrait
12
{
13
    public static function createMiddleware(TableStruct $struct):Middleware
14
    {
15
        return new TableStructMiddleware(static::class, $struct);
16
    }
17
}
18