Passed
Push — master ( 8294c3...31b270 )
by eXeCUT
03:49
created

ReceiverCache::set()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 2
rs 10
ccs 0
cts 2
cp 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: execut
5
 * Date: 9/27/16
6
 * Time: 2:26 PM
7
 */
8
9
namespace execut\import\components\source\adapter\email;
10
11
class ReceiverCache
12
{
13
    public function set($mails) {
14
        return \yii::$app->cache->set(__CLASS__, $mails, 60);
15
    }
16
    public function get() {
17
        return \yii::$app->cache->get(__CLASS__);
18
    }
19
}