Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Diagnostics/DiagnosticReport.php')
-rw-r--r--plugins/Diagnostics/DiagnosticReport.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/plugins/Diagnostics/DiagnosticReport.php b/plugins/Diagnostics/DiagnosticReport.php
index b9e6f8583f..fbc8fc8494 100644
--- a/plugins/Diagnostics/DiagnosticReport.php
+++ b/plugins/Diagnostics/DiagnosticReport.php
@@ -25,6 +25,11 @@ class DiagnosticReport
private $optionalDiagnosticResults;
/**
+ * @var DiagnosticResult[]
+ */
+ private $informationalResults;
+
+ /**
* @var int
*/
private $errorCount = 0;
@@ -37,11 +42,13 @@ class DiagnosticReport
/**
* @param DiagnosticResult[] $mandatoryDiagnosticResults
* @param DiagnosticResult[] $optionalDiagnosticResults
+ * @param DiagnosticResult[] $informationalResults
*/
- public function __construct(array $mandatoryDiagnosticResults, array $optionalDiagnosticResults)
+ public function __construct(array $mandatoryDiagnosticResults, array $optionalDiagnosticResults, array $informationalResults)
{
$this->mandatoryDiagnosticResults = $mandatoryDiagnosticResults;
$this->optionalDiagnosticResults = $optionalDiagnosticResults;
+ $this->informationalResults = $informationalResults;
$this->computeErrorAndWarningCount();
}
@@ -83,7 +90,7 @@ class DiagnosticReport
*/
public function getAllResults()
{
- return array_merge($this->mandatoryDiagnosticResults, $this->optionalDiagnosticResults);
+ return array_merge($this->mandatoryDiagnosticResults, $this->optionalDiagnosticResults, $this->informationalResults);
}
/**
@@ -102,6 +109,11 @@ class DiagnosticReport
return $this->optionalDiagnosticResults;
}
+ public function getInformationalResults()
+ {
+ return $this->informationalResults;
+ }
+
private function computeErrorAndWarningCount()
{
foreach ($this->getAllResults() as $result) {