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

Cache::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 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
}