1 | <?php |
||
7 | class ReactTimer implements ReactTimerInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var TimerInterface |
||
11 | */ |
||
12 | protected $timer; |
||
13 | |||
14 | /** |
||
15 | * @param TimerInterface $timer |
||
16 | */ |
||
17 | 15 | public function __construct(TimerInterface $timer) |
|
21 | |||
22 | /** |
||
23 | * |
||
24 | */ |
||
25 | 15 | public function __destruct() |
|
29 | |||
30 | /** |
||
31 | * @override |
||
32 | * @inheritDoc |
||
33 | */ |
||
34 | 1 | public function getActualTimer() |
|
38 | |||
39 | /** |
||
40 | * @override |
||
41 | * @inheritDoc |
||
42 | */ |
||
43 | 1 | public function getLoop() |
|
47 | |||
48 | /** |
||
49 | * @override |
||
50 | * @inheritDoc |
||
51 | */ |
||
52 | 1 | public function getInterval() |
|
56 | |||
57 | /** |
||
58 | * @override |
||
59 | * @inheritDoc |
||
60 | */ |
||
61 | 1 | public function getCallback() |
|
65 | |||
66 | /** |
||
67 | * @override |
||
68 | * @inheritDoc |
||
69 | */ |
||
70 | 1 | public function setData($data) |
|
74 | |||
75 | /** |
||
76 | * @override |
||
77 | * @inheritDoc |
||
78 | */ |
||
79 | 1 | public function getData() |
|
83 | |||
84 | /** |
||
85 | * @override |
||
86 | * @inheritDoc |
||
87 | */ |
||
88 | 2 | public function isPeriodic() |
|
92 | |||
93 | /** |
||
94 | * @override |
||
95 | * @inheritDoc |
||
96 | */ |
||
97 | 2 | public function isActive() |
|
101 | |||
102 | /** |
||
103 | * @override |
||
104 | * @inheritDoc |
||
105 | */ |
||
106 | 1 | public function cancel() |
|
110 | } |
||
111 |