Subversion Repositories qbpwcf-lib(archive)

Rev

Rev 915 | Details | Compare with Previous | Last modification | View Log | RSS feed

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