1 | <?php |
||
5 | class TimerCollection implements TimerCollectionInterface |
||
6 | { |
||
7 | /** |
||
8 | * @var TimerInterface[] |
||
9 | */ |
||
10 | protected $timers; |
||
11 | |||
12 | /** |
||
13 | * @param TimerInterface[] $timers |
||
14 | */ |
||
15 | 11 | public function __construct($timers = []) |
|
24 | |||
25 | /** |
||
26 | * |
||
27 | */ |
||
28 | 11 | public function __destruct() |
|
32 | |||
33 | /** |
||
34 | * @override |
||
35 | * @inheritDoc |
||
36 | */ |
||
37 | 2 | public function getTimers() |
|
41 | |||
42 | /** |
||
43 | * @override |
||
44 | * @inheritDoc |
||
45 | */ |
||
46 | 7 | public function existsTimer($name) |
|
50 | |||
51 | /** |
||
52 | * @override |
||
53 | * @inheritDoc |
||
54 | */ |
||
55 | 6 | public function addTimer($name, TimerInterface $timer) |
|
59 | |||
60 | /** |
||
61 | * @override |
||
62 | * @inheritDoc |
||
63 | */ |
||
64 | 2 | public function getTimer($name) |
|
68 | |||
69 | /** |
||
70 | * @override |
||
71 | * @inheritDoc |
||
72 | */ |
||
73 | 2 | public function removeTimer($name) |
|
77 | } |
||
78 |