LaravelCache::remember()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
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