Piwik\Plugins\Insights\API::checkReportIsValid PHP Method

checkReportIsValid() private method

private checkReportIsValid ( $report )
    private function checkReportIsValid($report)
    {
        if (!$report instanceof DataTable) {
            throw new \Exception('Insight can be only generated for reports returning a dataTable');
        }
    }