You are here

public function ContributorNames::__construct in Bibliography Module 7.2

Normalizer

Parameters

\Nametools\Normalize $normalize: Or null to auto-use dependency

Overrides AnalyzerInterface::__construct

File

lib/msrc-authortool/src/Analyzer/ContributorNames.php, line 39

Class

ContributorNames
Match Contributor Names with Predefined Regex

Namespace

Analyzer

Code

public function __construct(Normalize $normalizer = null) {

  //Set Normalizer Object
  $this->normalizer = $normalizer ?: new Normalize(new ContributorObject(), new RegexCounter());

  //Setup arrays
  $this->normalizedNames = array();
  $this->skippedNames = array();

  //Setup Patterns
  $this
    ->setupPatterns();
}