Passed
Push — sudav3 ( b29c56...468d62 )
by 世昌
02:20
created

TableStructMiddleware::getFieldName()   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 ReflectionProperty;
5
use suda\orm\middleware\ObjectMiddleware;
6
7
/**
8
 * 结构中间件
9
 */
10
class TableStructMiddleware extends ObjectMiddleware
11
{
12
    /**
13
     * 获取字段名
14
     *
15
     * @param ReflectionProperty $property
16
     * @return string
17
     */
18
    protected function getFieldName(ReflectionProperty $property)
19
    {
20
        return TableStructBuilder::getFieldName($property);
21
    }
22
}
23