/
MockCommandHelp.php
88 lines (76 loc) · 1.37 KB
/
MockCommandHelp.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
/**
* Lithium: the most rad php framework
*
* @copyright Copyright 2014, Union of RAD (http://union-of-rad.org)
* @license http://opensource.org/licenses/bsd-license.php The BSD License
*/
namespace lithium\tests\mocks\console\command;
/**
* This is a mock class for testing help
*
*/
class MockCommandHelp extends \lithium\console\Command {
/**
* This is a long param.
*
* @var string
*/
public $long = 'default';
/**
* This is a boolean long param.
*
* @var boolean
*/
public $blong = true;
/**
* This is a short param.
*
* @var boolean
*/
public $s = true;
/**
* Don't show this.
*
* @var array
*/
protected $_classes = array(
'response' => 'lithium\tests\mocks\console\MockResponse'
);
/**
* This is the run command so don't show it.
*
* @return boolean
*/
public function run() {
return true;
}
/**
* This is a task with required args.
*
* @param string $arg1
* @param string $arg2
* @return boolean
*/
public function sampleTaskWithRequiredArgs($arg1, $arg2) {
return true;
}
/**
* This is a task with optional args.
*
* @param string $arg1
* @param string $arg2
* @return boolean
*/
public function sampleTaskWithOptionalArgs($arg1 = null, $arg2 = null) {
return true;
}
/**
* Don't show in the help
*
* @return void
*/
protected function _sampleHelper() {
}
}
?>