parser = $parser; } /** * Parse given string and return its value * * @param string $str * @param string $restrict Pipe-separated list of allowed matches (ignored if empty) * @return mixed */ protected function recurse(string $str, string $restrict = '') { return $this->parser->parse($str, $restrict)['value']; } }