public function __construct($timers = []) { $this->timers = []; foreach ($timers as $name => $timer) { $this->addTimer($name, $timer); } }