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

checkInternalMethod() public method

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