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

SimpleJsonDataTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A jsonSerialize() 0 3 1
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