SilentUI.php 477 B

123456789101112131415161718192021222324
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Service\Cron\UI;
  4. /**
  5. * Silent user interface.
  6. *
  7. * This is the default interface between cron-jobs and commands, and it does nothing,
  8. * but it can be replaced by other more verbose interfaces if needed.
  9. */
  10. class SilentUI implements CronUIInterface
  11. {
  12. public function print(string $message): void
  13. {
  14. // Do nothing
  15. }
  16. public function progress(int $i, int $total): void
  17. {
  18. // Do nothing
  19. }
  20. }