public function needsHeartbeat()
    {
        if (0 < $this->timeouts['interval'] && \microtime(true) > ($this->timeouts['interval'] + $this->heartbeat - 5)) {
            $this->heartbeat = \microtime(true);

            return true;
        }

        return false;
    }
public function needsHeartbeat()
    {
        if (0 < $this->timeouts['interval'] && \microtime(true) > ($this->timeouts['interval'] + $this->heartbeat - 5)) {
            $this->heartbeat = \microtime(true);

            return true;
        }

        return false;
    }
public function needsHeartbeat ( ) { if ( 0 < $ this -> timeouts [ 'interval' ] && \ microtime ( true ) > ( $ this -> timeouts [ 'interval' ] + $ this -> heartbeat - 5 ) ) { $ this -> heartbeat = \ microtime ( true ) ; return true ; } return false ; }
Checks whether a new heartbeat is necessary, and does a new heartbeat if it is the case

@return Boolean true if there was a heartbeat, false otherwise
Checks whether a new heartbeat is necessary and does a new heartbeat if it is the case