function setPositivePattern($pattern) { $this->pattern['posPref'] = $pattern[0]; $this->pattern['posPost'] = $pattern[1]; }