You are here

public function SiteAuditCheckAbstract::__construct in Site Audit 8.2

Same name and namespace in other branches
  1. 7 Check/Abstract.php \SiteAuditCheckAbstract::__construct()

Constructor.

Parameters

array $registry: Aggregates data from each individual check.

bool $opt_out: If set, will not perform checks.

File

Check/Abstract.php, line 66
Contains \SiteAudit\Check\Abstract.

Class

SiteAuditCheckAbstract
Class SiteAuditCheckAbstract.

Code

public function __construct(array $registry, $opt_out = FALSE) {
  $this->registry = $registry;
  if ($opt_out) {
    $this->optOut = TRUE;
    $this->score = SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
  }
}