src/Utilities/Reflection.php
public static function getParentClass($source)
    {
        $className = self::getClassName($source);
        $reflection = new \ReflectionClass($className);

        return $reflection->getParentClass();
    }
public static function getParentClass($source)
    {
        $className = self::getClassName($source);
        $reflection = new \ReflectionClass($className);

        return $reflection->getParentClass();
    }
public static function getParentClass ( $ source ) { $ className = self :: getClassName ( $ source ) ; $ reflection = new \ ReflectionClass ( $ className ) ; return $ reflection -> getParentClass ( ) ; }
Returns a parent class or false if there is no parent class

@param array|object|string $source An array of objects, namespaces, object or namespace
@return bool|\ReflectionClass
Returns a parent class or false if there is no parent class