LaravelCache   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A remember() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AcquiroPay\Cache;
6
7
use Closure;
8
use AcquiroPay\Contracts\Cache;
9
use Illuminate\Cache\Repository;
10
11
class LaravelCache implements Cache
12
{
13
    protected $repository;
14
15
    public function __construct(Repository $repository)
16
    {
17
        $this->repository = $repository;
18
    }
19
20
    public function remember(string $key, int $minutes, Closure $callback)
21
    {
22
        return $this->repository->remember($key, $minutes, $callback);
23
    }
24
}
25