public function isActive()
    {
        return $this->timerService->isStarted() && !$this->isCanceled() && !$this->isExpired() &&
            ($this->timerService->isScheduled($this->getId()) || $this->timerState == TimerState::CREATED);
    }
public function isActive()
    {
        return $this->timerService->isStarted() && !$this->isCanceled() && !$this->isExpired() &&
            ($this->timerService->isScheduled($this->getId()) || $this->timerState == TimerState::CREATED);
    }
public function isActive ( ) { return $ this -> timerService -> isStarted ( ) && ! $ this -> isCanceled ( ) && ! $ this -> isExpired ( ) && ( $ this -> timerService -> isScheduled ( $ this -> getId ( ) ) || $ this -> timerState == TimerState :: CREATED ) ; }
Returns TRUE if this timer is active, else FALSE.

A timer is considered to be "active", if its timer state is neither of the following:

- TimerState::CANCELED
- TimerState::EXPIRED
- has not been suspended

And if the corresponding timer service is still up

@return boolean TRUE if the timer is active
Returns TRUE if this timer is active else FALSE .