User   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A comments() 0 3 1
1
<?php
2
/**
3
 * @author  Eddy <[email protected]>
4
 */
5
6
namespace App\Model\Admin;
7
8
class User extends \App\Model\Front\User
9
{
10
    public static $listField = [
11
        'phone' => '手机号',
12
        'statusText' => '状态'
13
    ];
14
15
    public static $searchField = [
16
        'phone' => '手机号'
17
    ];
18
19
    public function comments()
20
    {
21
        return $this->hasMany('App\Model\Admin\Comment', 'user_id');
22
    }
23
}
24