getInterval() public method

Return interval of timer.
public getInterval ( ) : float
return float
Beispiel #1
0
 /**
  * @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);
 }
Beispiel #2
0
 /**
  * @override
  * @inheritDoc
  */
 public function getInterval()
 {
     return $this->timer->getInterval();
 }