logger = $logger; } public function execute() { $result = new DiagnosticResult("🧪 label"); $result->addItem(new DiagnosticResultItem(DiagnosticResult::STATUS_ERROR, "error")); $result->addItem(new DiagnosticResultItem(DiagnosticResult::STATUS_WARNING, "warning")); $result->addItem(new DiagnosticResultItem(DiagnosticResult::STATUS_OK, "okay")); $result->addItem(new DiagnosticResultItem(DiagnosticResult::STATUS_INFORMATIONAL, "info")); return array($result); } }