private function getFunctionName($prefix, $file, $suffix, $key = 0)
    {
        if (preg_match(self::getRegex(), strtolower($file), $matches)) {
            $format = self::$suffixes[$matches[1]];

            if (is_array($format)) {
                $format = $format[$key];
            }

            return sprintf('%s%s%s', $prefix, $format, $suffix);
        }
    }
private function getFunctionName($prefix, $file, $suffix, $key = 0)
    {
        if (preg_match(self::getRegex(), strtolower($file), $matches)) {
            $format = self::$suffixes[$matches[1]];

            if (is_array($format)) {
                $format = $format[$key];
            }

            return sprintf('%s%s%s', $prefix, $format, $suffix);
        }
    }
private function getFunctionName ( $ prefix , $ file , $ suffix , $ key = 0 ) { if ( preg_match ( self :: getRegex ( ) , strtolower ( $ file ) , $ matches ) ) { $ format = self :: $ suffixes [ $ matches [ 1 ] ] ; if ( is_array ( $ format ) ) { $ format = $ format [ $ key ] ; } return sprintf ( '%s%s%s' , $ prefix , $ format , $ suffix ) ; } }
Get the format based in the extension.

@param string $file

@return string|null
Get the format based in the extension .