public function SiteAuditCheckAbstract::getScoreLabel in Site Audit 7
Same name and namespace in other branches
- 8.2 Check/Abstract.php \SiteAuditCheckAbstract::getScoreLabel()
Get a human readable label for a score.
Return value
string Pass, Recommendation and so forth.
File
- Check/
Abstract.php, line 99 - Contains \SiteAudit\Check\Abstract.
Class
- SiteAuditCheckAbstract
- Class SiteAuditCheckAbstract.
Code
public function getScoreLabel() {
switch ($this->score) {
case SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS:
return dt('Pass');
case SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN:
return dt('Warning');
case SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO:
return dt('Information');
default:
return dt('Blocker');
}
}