MockCommandHelp.php 1.4 KB

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