public function Normalize::__construct in Bibliography Module 7.2
Constructor
Parameters
MatchObject $matchObject:
array $patterns:
File
- lib/
msrc-authortool/ src/ Nametools/ Normalize.php, line 47
Class
- Normalize
- Normalize strings from common formats using REGEX
Namespace
NametoolsCode
public function __construct(MatchObject $matchObject, RegexCounter $regexCounter, $patterns = array()) {
//Setup array
$this->patterns = array();
//Dependencies and options
$this->regexCounter = $regexCounter;
$this->matchObject = $matchObject;
$this
->addPatterns($patterns);
}