Eloquent\Phony\Reflection\FeatureDetector::checkInternalClass PHP Method

checkInternalClass() public method

Check that the specified class is defined by the PHP core, or an extension.
public checkInternalClass ( string $className ) : boolean
$className string The class name.
return 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;
    }