Completed
Push — master ( da2fc1...7aff44 )
by Razon
02:48
created

ArticleComment::fields()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 9
ccs 0
cts 9
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
namespace App\Http\Api\Model;
3
4
use App\Model\ArticleComment as Model;
5
use Yii;
6
7
class ArticleComment extends Model
8
{
9
    public function fields()
10
    {
11
        return [
12
            'id',
13
            'is_deleted',
14
            'username',
15
            'content',
16
            'create_time',
17
            'update_time',
18
        ];
19
    }
20
}
21