private function appendMatcher($matcher, Closure $extractor = null) { $matcher = $this->createMatcher($matcher); if ($extractor) { $matcher->setExtractor($extractor); } $this->matcher[] = $matcher; }