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

OauthClientsSignupUser::tableName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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