public static function setStringFormat(string $format)
    {
        switch ($format) {
            case 'raw':
                self::$format = 'raw';
                break;
            case 'basic':
                self::$format = 'basic';
                break;
            case 'full':
            default:
                self::$format = 'full';
                break;
        }
    }
public static function setStringFormat(string $format)
    {
        switch ($format) {
            case 'raw':
                self::$format = 'raw';
                break;
            case 'basic':
                self::$format = 'basic';
                break;
            case 'full':
            default:
                self::$format = 'full';
                break;
        }
    }
public static function setStringFormat ( string $ format ) { switch ( $ format ) { case 'raw' : self :: $ format = 'raw' ; break ; case 'basic' : self :: $ format = 'basic' ; break ; case 'full' : default : self :: $ format = 'full' ; break ; } }
How to serialize as a string

@example "full", "basic", "raw"
@param string $format
How to serialize as a string