TimerInterface.php 492 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace React\EventLoop;
  3. interface TimerInterface
  4. {
  5. /**
  6. * Get the interval after which this timer will execute, in seconds
  7. *
  8. * @return float
  9. */
  10. public function getInterval();
  11. /**
  12. * Get the callback that will be executed when this timer elapses
  13. *
  14. * @return callable
  15. */
  16. public function getCallback();
  17. /**
  18. * Determine whether the time is periodic
  19. *
  20. * @return bool
  21. */
  22. public function isPeriodic();
  23. }