REBELinBLUE\Deployer\Heartbeat::pinged PHP Method

pinged() public method

Updates the last_activity timestamp.
public pinged ( ) : boolean
return boolean
    public function pinged()
    {
        $isHealthy = $this->status === self::UNTESTED || $this->isHealthy();
        $this->status = self::OK;
        $this->missed = 0;
        $this->last_activity = $this->freshTimestamp();
        if (!$isHealthy) {
            event(new HeartbeatRecovered($this));
        }
        return $this->save();
    }