PHP 8.2.31
Preview: ClassReflectionAnalyzer.php Size: 481 B
/opt/cpanel/ea-wappspector/vendor/rector/rector/src/Reflection/ClassReflectionAnalyzer.php

<?php

declare (strict_types=1);
namespace Rector\Reflection;

use PHPStan\Reflection\ClassReflection;
use ReflectionEnum;
final class ClassReflectionAnalyzer
{
    public function resolveParentClassName(ClassReflection $classReflection) : ?string
    {
        $nativeReflection = $classReflection->getNativeReflection();
        if ($nativeReflection instanceof ReflectionEnum) {
            return null;
        }
        return $nativeReflection->getParentClassName();
    }
}

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
1.02 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
481 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.22 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
11.25 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).