Passed
Pull Request — master (#1)
by Siim
12:30
created

CacheAdapterTrait::getCacheAdapter()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: siim
5
 * Date: 21.02.19
6
 * Time: 20:22
7
 */
8
9
namespace Sf4\Api\RequestHandler\Traits;
10
11
use Sf4\Api\Services\CacheAdapterInterface;
12
13
trait CacheAdapterTrait
14
{
15
16
    /** @var CacheAdapterInterface $cacheAdapter */
17
    protected $cacheAdapter;
18
19
    /**
20
     * @return CacheAdapterInterface
21
     */
22
    public function getCacheAdapter(): CacheAdapterInterface
23
    {
24
        return $this->cacheAdapter;
25
    }
26
27
    /**
28
     * @param CacheAdapterInterface $cacheAdapter
29
     */
30
    public function setCacheAdapter(CacheAdapterInterface $cacheAdapter): void
31
    {
32
        $this->cacheAdapter = $cacheAdapter;
33
    }
34
}
35