ShellTestShell.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /**
  3. * ShellTestShell file
  4. *
  5. * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
  6. * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  7. *
  8. * Licensed under The MIT License
  9. * For full copyright and license information, please see the LICENSE.txt
  10. * Redistributions of files must retain the above copyright notice
  11. *
  12. * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  13. * @link https://cakephp.org CakePHP(tm) Project
  14. * @since 3.0.8
  15. * @license https://opensource.org/licenses/mit-license.php MIT License
  16. */
  17. namespace TestApp\Shell;
  18. use Cake\Console\Shell;
  19. /**
  20. * ShellTestShell class
  21. */
  22. class ShellTestShell extends Shell
  23. {
  24. /**
  25. * name property
  26. *
  27. * @var string
  28. */
  29. public $name = 'ShellTestShell';
  30. /**
  31. * stopped property
  32. *
  33. * @var int
  34. */
  35. public $stopped;
  36. /**
  37. * testMessage property
  38. *
  39. * @var string
  40. */
  41. public $testMessage = 'all your base are belong to us';
  42. /**
  43. * stop method
  44. *
  45. * @param int $status
  46. * @return void
  47. */
  48. protected function _stop($status = Shell::CODE_SUCCESS)
  49. {
  50. $this->stopped = $status;
  51. }
  52. protected function _secret()
  53. {
  54. }
  55. //@codingStandardsIgnoreStart
  56. public function doSomething()
  57. {
  58. }
  59. protected function noAccess()
  60. {
  61. }
  62. public function logSomething()
  63. {
  64. $this->log($this->testMessage);
  65. }
  66. //@codingStandardsIgnoreEnd
  67. }