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

ReceiverCache   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 0
f 0
dl 0
loc 7
rs 10
ccs 0
cts 4
cp 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get() 0 2 1
A set() 0 2 1
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
}