Completed
Pull Request — Laravel4 (#36)
by
unknown
10:35
created

SteamAppGrabber   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 59
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A fire() 0 4 1
A getArguments() 0 6 1
A getOptions() 0 6 1
A __construct() 0 4 1
1
<?php namespace Syntax\SteamApi\Command;
2
3
use Illuminate\Console\Command;
4
use Symfony\Component\Console\Input\InputOption;
5
use Symfony\Component\Console\Input\InputArgument;
6
7
class SteamAppGrabber extends Command {
8
9
	/**
10
	 * The console command name.
11
	 *
12
	 * @var string
13
	 */
14
	protected $name = 'steam:applist';
15
16
	/**
17
	 * The console command description.
18
	 *
19
	 * @var string
20
	 */
21
	protected $description = 'Get all the steam apps and insert them into the database.';
22
23
	/**
24
	 * Create a new command instance.
25
	 */
26
	public function __construct()
27
	{
28
		parent::__construct();
29
	}
30
31
	/**
32
	 * Execute the console command.
33
	 *
34
	 * @return mixed
35
	 */
36
	public function fire()
37
	{
38
		//
39
	}
40
41
	/**
42
	 * Get the console command arguments.
43
	 *
44
	 * @return array
45
	 */
46
	protected function getArguments()
47
	{
48
		return array(
49
			array('example', InputArgument::REQUIRED, 'An example argument.'),
50
		);
51
	}
52
53
	/**
54
	 * Get the console command options.
55
	 *
56
	 * @return array
57
	 */
58
	protected function getOptions()
59
	{
60
		return array(
61
			array('example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null),
62
		);
63
	}
64
65
}
66