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

Return interval of timer.
public getInterval ( ) : float
Результат float
Пример #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);
 }
Пример #2
0
 /**
  * @override
  * @inheritDoc
  */
 public function getInterval()
 {
     return $this->timer->getInterval();
 }