AbstractAdapter.php 652 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of Hyperf.
  5. *
  6. * @link https://www.hyperf.io
  7. * @document https://hyperf.wiki
  8. * @contact group@hyperf.io
  9. * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
  10. */
  11. namespace Hyperf\Devtool\Adapter;
  12. use Symfony\Component\Console\Input\InputInterface;
  13. use Symfony\Component\Console\Output\OutputInterface;
  14. abstract class AbstractAdapter
  15. {
  16. abstract public function execute(InputInterface $input, OutputInterface $output);
  17. protected function tab(string $append = '', int $int = 1, int $length = 4)
  18. {
  19. return str_repeat(' ', $int * $length) . $append;
  20. }
  21. }