Completed
Branch master (1afb45)
by Timothy
04:13
created

ClearCache   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 1
cbo 2
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 8 1
1
<?php
2
/**
3
 * Hummingbird Anime Client
4
 *
5
 * An API client for Hummingbird to manage anime and manga watch lists
6
 *
7
 * @package     HummingbirdAnimeClient
8
 * @author      Timothy J. Warren
9
 * @copyright   Copyright (c) 2015 - 2016
10
 * @link        https://github.com/timw4mail/HummingBirdAnimeClient
11
 * @license     MIT
12
 */
13
14
namespace Aviat\AnimeClient\Command;
15
16
/**
17
 * Clears the API Cache
18
 */
19
class ClearCache extends BaseCommand {
20
	/**
21
	 * Run the image conversion script
22
	 *
23
	 * @param array $args
24
	 * @param array $options
25
	 * @return void
26
	 * @throws \ConsoleKit\ConsoleException
27
	 */
28
	public function execute(array $args, array $options = array())
29
	{
30
		$this->setContainer($this->setupContainer());
31
		$cache = $this->container->get('cache');
32
		$cache->purge();
33
		
34
		$this->echoBox('API Cache has been cleared.');
35
	}
36
}
37
// End of ClearCache.php