Test Failed
Push — master ( aff3ac...48396d )
by 世昌
02:34
created

SimpleJsonDataTrait::jsonSerialize()   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 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
namespace suda\orm\struct;
3
4
trait SimpleJsonDataTrait  
5
{
6
    abstract public function getJsonExportData();
7
    
8
    /**
9
     * 获取序列化对象
10
     *
11
     * @return array
12
     */
13
    public function jsonSerialize()
14
    {
15
        return $this->getJsonExportData();
16
    }
17
}
18