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

ClearCache::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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