Code::attributes()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 0
dl 0
loc 9
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace yrc\models\redis;
4
5
use Base32\Base32;
6
use Yii;
7
8
/**
9
 * Represents a temporary single use consumable token
10
 * @property integer $id
11
 * @property string $hash
12
 * @property integer $user_id
13
 * @property mixed $type
14
 * @property mixed $data
15
 * @property integer $expires_at
16
 */
17
class Code extends \yrc\redis\ActiveRecord
18
{
19
    /**
20
     * @inheritdoc
21
     */
22
    public function attributes()
23
    {
24
        return [
25
            'id',
26
            'hash',
27
            'user_id',
28
            'type',
29
            'data',
30
            'expires_at'
31
        ];
32
    }
33
}
34