src/Reflection/ReflectionClass.php
public static function export(?string $className) : string
    {
        if ($className === null) {
            throw new InvalidArgumentException('Class name must be provided');
        }

        return self::createFromName($className)->__toString();
    }
public static function export(?string $className) : string
    {
        if ($className === null) {
            throw new InvalidArgumentException('Class name must be provided');
        }

        return self::createFromName($className)->__toString();
    }
Create a reflection and return the string representation of a named class