public static function export($instance = null) : string
    {
        if ($instance === null) {
            throw new InvalidArgumentException('Class instance must be provided');
        }

        return self::createFromInstance($instance)->__toString();
    }