public function __construct(RegExGeneratorInterface $regexGenerator) { $this->regexGenerator = $regexGenerator; }