protected function resolvePatternValue($element)
    {

        // query whether or not matches has been found OR the counter element has been passed
        if ($this->countMatches() === 0 || BunchKeys::COUNTER === $element) {
            // prepare the method name for the callback to load the pattern value with
            $methodName = sprintf('get%s', ucfirst($element));

            // load the pattern value
            if (in_array($methodName, get_class_methods($this->getFileResolverConfiguration()))) {
                return call_user_func(array($this->getFileResolverConfiguration(), $methodName));
            }

            // stop processing
            return;
        }

        // try to load the pattern value from the matches
        return $this->getMatch($element);
    }
protected function resolvePatternValue($element)
    {

        // query whether or not matches has been found OR the counter element has been passed
        if ($this->countMatches() === 0 || BunchKeys::COUNTER === $element) {
            // prepare the method name for the callback to load the pattern value with
            $methodName = sprintf('get%s', ucfirst($element));

            // load the pattern value
            if (in_array($methodName, get_class_methods($this->getFileResolverConfiguration()))) {
                return call_user_func(array($this->getFileResolverConfiguration(), $methodName));
            }

            // stop processing
            return;
        }

        // try to load the pattern value from the matches
        return $this->getMatch($element);
    }
protected function resolvePatternValue ( $ element ) { // query whether or not matches has been found OR the counter element has been passed if ( $ this -> countMatches ( ) === 0 || BunchKeys :: COUNTER === $ element ) { // prepare the method name for the callback to load the pattern value with $ methodName = sprintf ( 'get%s' , ucfirst ( $ element ) ) ; // load the pattern value if ( in_array ( $ methodName , get_class_methods ( $ this -> getFileResolverConfiguration ( ) ) ) ) { return call_user_func ( array ( $ this -> getFileResolverConfiguration ( ) , $ methodName ) ) ; } // stop processing return ; } // try to load the pattern value from the matches return $ this -> getMatch ( $ element ) ; }
Resolves the pattern value for the given element name.

@param string $element The element name to resolve the pattern value for

@return string|null The resolved pattern value
Resolves the pattern value for the given element name .