| 1 | <?php |
||
| 9 | trait LoopTrait |
||
| 10 | { |
||
| 11 | /** @var LoopInterface */ |
||
| 12 | private $loop; |
||
| 13 | |||
| 14 | abstract protected function warning($message, array $context = array()); |
||
| 15 | |||
| 16 | protected function setLoop(LoopInterface $loop) |
||
| 20 | |||
| 21 | protected function getLoop() : LoopInterface |
||
| 25 | |||
| 26 | protected function addTimer($interval, $function) |
||
| 30 | |||
| 31 | protected function addPeriodicTimer($interval, $function) |
||
| 35 | |||
| 36 | protected function cancelTimer(TimerInterface $timer) |
||
| 40 | |||
| 41 | private function callable($function) : callable |
||
| 54 | } |