Completed
Push — master ( 9b9020...8f5910 )
by Razon
02:07
created

Article   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 11
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A extraFields() 0 4 1
A fields() 0 10 1
1
<?php
2
namespace App\Http\Api\Model;
3
4
use App\Model\Article as BaseArticle;
5
use Yii;
6
7
class Article extends BaseArticle
8
{
9
    public function fields()
10
    {
11
        return [
12
            'id',
13
            'title',
14
            'author',
15
            'cover',
16
            'summary',
17
            'release_time',
18
            'update_time',
19
        ];
20
    }
21
22
    public function extraFields()
23
    {
24
        return [
25
            'content',
26
        ];
27
    }
28
}