Eloquent\Phony\Reflection\FeatureDetector::checkInternalClass PHP 메소드

checkInternalClass() 공개 메소드

Check that the specified class is defined by the PHP core, or an extension.
public checkInternalClass ( string $className ) : boolean
$className string The class name.
리턴 boolean True if the class exists, and is internal.
    public function checkInternalClass($className)
    {
        if (class_exists($className, false)) {
            $class = new ReflectionClass($className);
            return $class->isInternal();
        }
        return false;
    }