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

Code   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

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