Completed
Push — master ( de7b71...d31399 )
by Charles
01:40
created

Code::attributes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 0
1
<?php
2
3
namespace yrc\models\redis;
4
5
use Base32\Base32;
6
use Yii;
7
8
/**
9
 * Represents a temporary, (ideally) single use code for operations where passwords cannot be used
10
 */
11
class Code extends \yrc\redis\ActiveRecord
12
{
13
    /**
14
     * @inheritdoc
15
     */
16
    public function attributes()
17
    {
18
        return [
19
            'id',
20
            'hash',
21
            'user_id',
22
            'type',
23
            'attributes',
24
            'expires_at'
25
        ];
26
    }
27
}