public __construct ( Kraken\Loop\Timer\TimerInterface[] $timers = [] ) | ||
$timers | Kraken\Loop\Timer\TimerInterface[] |
public function __construct($timers = [])
{
$this->timers = [];
foreach ($timers as $name => $timer) {
$this->addTimer($name, $timer);
}
}