public static function getParentClassName($class)
    {
        $className = self::getClassName($class);
        $reflection = new \ReflectionClass($className);
        $parentClass = $reflection->getParentClass();

        if (null === $parentClass || false === $parentClass) {
            return null;
        }

        return $parentClass->getName();
    }