Completed
Pull Request — master (#19)
by Flo
04:12
created

Cache   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 8 1
1
<?php
2
/**
3
 * Class Cache | Cache.php
4
 * @package Faulancer\Cache
5
 * @author  Florian Knapp <[email protected]>
6
 */
7
namespace Faulancer\Cache;
8
9
/**
10
 * Class Cache
11
 */
12
class Cache
13
{
14
15
    /** @var CacheableInterface[] */
16
    protected $resources = [];
17
18
    public function handle(CacheableInterface $class)
19
    {
20
21
        $this->resources[] = [
22
            'name' => $class
23
        ];
24
25
    }
26
27
}