Completed
Push — master ( b5be07...eb7aa9 )
by zacksleo
01:54
created

OauthClientsSignupUser   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 31
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A attributeLabels() 0 7 1
A tableName() 0 4 1
A rules() 0 6 1
1
<?php
2
3
namespace zacksleo\yii2\oauth2\common\models;
4
5
use Yii;
6
7
/**
8
 * This is the model class for table "{{%oauth_clients_signup_user}}".
9
 *
10
 * @property integer $user_id
11
 * @property string $client_id
12
 */
13
class OauthClientsSignupUser extends \yii\db\ActiveRecord
14
{
15
    /**
16
     * @inheritdoc
17
     */
18 2
    public static function tableName()
19
    {
20 2
        return '{{%oauth_clients_signup_user}}';
21
    }
22
23
    /**
24
     * @inheritdoc
25
     */
26 1
    public function rules()
27
    {
28
        return [
29 1
            [['client_id'], 'string', 'max' => 36],
30
        ];
31
    }
32
33
    /**
34
     * @inheritdoc
35
     */
36
    public function attributeLabels()
37
    {
38
        return [
39
            'user_id' => 'User ID',
40
            'client_id' => '客户端',
41
        ];
42
    }
43
}
44