File tree 2 files changed +21
-5
lines changed
2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace React \EventLoop \Timer ;
4
4
5
- class Timer implements TimerInterface
5
+ /**
6
+ * The actual connection implementation for TimerInterface
7
+ *
8
+ * This class should only be used internally, see TimerInterface instead.
9
+ *
10
+ * @see TimerInterface
11
+ * @internal
12
+ */
13
+ final class Timer implements TimerInterface
6
14
{
7
15
const MIN_INTERVAL = 0.000001 ;
8
16
9
- protected $ interval ;
10
- protected $ callback ;
11
- protected $ periodic ;
17
+ private $ interval ;
18
+ private $ callback ;
19
+ private $ periodic ;
12
20
13
21
/**
14
22
* Constructor initializes the fields of the Timer
Original file line number Diff line number Diff line change 5
5
use SplObjectStorage ;
6
6
use SplPriorityQueue ;
7
7
8
- class Timers
8
+ /**
9
+ * A scheduler implementation that can hold multiple timer instances
10
+ *
11
+ * This class should only be used internally, see TimerInterface instead.
12
+ *
13
+ * @see TimerInterface
14
+ * @internal
15
+ */
16
+ final class Timers
9
17
{
10
18
private $ time ;
11
19
private $ timers ;
You can’t perform that action at this time.
0 commit comments