public function getMatcherFunction($name) {
        if (!isset($this->functions[$name])) {
            throw new InvalidArgumentException(sprintf(
                'No matcher function registered for "%s".',
                $name
            ));
        }

        return $this->functions[$name];
    }