Completed
Push — master ( 9d9e83...3be7ab )
by Adam
06:19
created

Cache   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 14
ccs 2
cts 4
cp 0.5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A clean() 0 4 1
1
<?php
2
/**
3
 * Cache.php
4
 *
5
 * @copyright      More in license.md
6
 * @license        http://www.ipublikuj.eu
7
 * @author         Adam Kadlec http://www.ipublikuj.eu
8
 * @package        iPublikuj:Gravatar!
9
 * @subpackage     Caching
10
 * @since          1.0.0
11
 *
12
 * @date           10.03.15
13
 */
14
15
declare(strict_types = 1);
16
17
namespace IPub\Gravatar\Caching;
18
19
use Nette;
20
use Nette\Caching;
21
22
/**
23
 * Loaded gravatar cache
24
 *
25
 * @package        iPublikuj:Gravatar!
26
 * @subpackage     Caching
27
 *
28
 * @author         Adam Kadlec <[email protected]>
29
 */
30 1
final class Cache extends Caching\Cache
31
{
32
	/**
33
	 * Remove all items cached by extension
34
	 *
35
	 * @param array $conditions
36
	 *
37
	 * @return void
38
	 */
39
	public function clean(array $conditions = NULL)
40
	{
41
		parent::clean([self::TAGS => ['ipub.gravatar']]);
42
	}
43
}
44