private function _extractParameterNames($template) { if (!is_string($template)) { throw new \InvalidArgumentException("Template is not a string"); } preg_match_all(self::REGEX_PARAM, $template, $matches); return $matches[1]; }