Completed
Push — master ( f5e876...d97b85 )
by Timo
13s
created

NoCache::retrieve()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace hamburgscleanest\DataTables\Models\Cache;
4
5
use Illuminate\Support\Collection;
6
7
/**
8
 * Class NoCache
9
 * @package hamburgscleanest\DataTables\Models\Cache
10
 */
11
class NoCache {
12
13
    /**
14
     * @param \Closure $dataFunction
15
     * @return Collection
16
     */
17 50
    public function retrieve(\Closure $dataFunction) : Collection
18
    {
19 50
        return $dataFunction();
20
    }
21
}