Code   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A attributes() 0 9 1
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