public function check()
    {
        $report = HealthReport::buildStatusUp();
        if (!empty($this->checks)) {
            foreach ($this->checks as $check) {
                $report = $check->check($report);
                if ($report->isDown()) {
                    return $report;
                }
            }
        }
        return $report;
    }
public function check()
    {
        $report = HealthReport::buildStatusUp();
        if (!empty($this->checks)) {
            foreach ($this->checks as $check) {
                $report = $check->check($report);
                if ($report->isDown()) {
                    return $report;
                }
            }
        }
        return $report;
    }
public function check ( ) { $ report = HealthReport :: buildStatusUp ( ) ; if ( ! empty ( $ this -> checks ) ) { foreach ( $ this -> checks as $ check ) { $ report = $ check -> check ( $ report ) ; if ( $ report -> isDown ( ) ) { return $ report ; } } } return $ report ; }
Checks all registered HealthCheckers and stops on the first encounter of a failing test.

@return HealthReportInterface
Checks all registered HealthCheckers and stops on the first encounter of a failing test .