/** * @param TimerInterface $timer */ public function add(TimerInterface $timer) { $interval = $timer->getInterval(); $scheduledAt = $interval + $this->getTime(); $this->timers->attach($timer, $scheduledAt); $this->scheduler->insert($timer, -$scheduledAt); }
/** * @override * @inheritDoc */ public function getInterval() { return $this->timer->getInterval(); }