public static function getFormatDefinition(string $name): ?string
    {
        if (!self::$formats) {
            self::$formats = self::initFormats();
        }

        return isset(self::$formats[$name]) ? self::$formats[$name] : null;
    }
public static function getFormatDefinition(string $name): ?string
    {
        if (!self::$formats) {
            self::$formats = self::initFormats();
        }

        return isset(self::$formats[$name]) ? self::$formats[$name] : null;
    }
public static function getFormatDefinition ( string $ name ) : ? string { if ( ! self :: $ formats ) { self :: $ formats = self :: initFormats ( ) ; } return isset ( self :: $ formats [ $ name ] ) ? self :: $ formats [ $ name ] : null ; }
Gets the format for a given name.

@param string $name The format name

@return string|null A format string
Gets the format for a given name .