Completed
Pull Request — master (#46)
by Klaus
02:51
created

CacheAware   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 17
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Linio\Component\Cache;
6
7
trait CacheAware
8
{
9
    protected CacheService $cacheService;
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected T_STRING, expecting T_FUNCTION or T_CONST
Loading history...
10
11
    public function getCacheService(): CacheService
12
    {
13
        return $this->cacheService;
14
    }
15
16
    public function setCacheService(CacheService $cacheService): void
17
    {
18
        $this->cacheService = $cacheService;
19
    }
20
}
21