Kraken\Loop\Timer\TimerBox::contains PHP Method

contains() public method

public contains ( Kraken\Loop\Timer\TimerInterface $timer ) : boolean
$timer Kraken\Loop\Timer\TimerInterface
return boolean
    public function contains(TimerInterface $timer)
    {
        return $this->timers->contains($timer);
    }

Usage Example

Example #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function isTimerActive(TimerInterface $timer)
 {
     return $this->timers->contains($timer);
 }