Kraken\Loop\Timer\TimerCollection::__construct PHP Метод

__construct() публичный Метод

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);
        }
    }