SampleSubCommand.php 1009 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
  5. * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  6. *
  7. * Licensed under The MIT License
  8. * For full copyright and license information, please see the LICENSE.txt
  9. * Redistributions of files must retain the above copyright notice.
  10. *
  11. * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  12. * @link https://cakephp.org CakePHP(tm) Project
  13. * @since 3.6.0
  14. * @license https://opensource.org/licenses/mit-license.php MIT License
  15. */
  16. namespace TestApp\Command;
  17. use Cake\Command\Command;
  18. use Cake\Console\Arguments;
  19. use Cake\Console\ConsoleIo;
  20. class SampleSubCommand extends Command
  21. {
  22. /**
  23. * Get the command name.
  24. *
  25. * @return string
  26. */
  27. public static function defaultName(): string
  28. {
  29. return 'sample sub';
  30. }
  31. public function execute(Arguments $args, ConsoleIo $io)
  32. {
  33. }
  34. }