public static function isChildOfClass($childClass, $parentClass)
    {
        $childClassName = self::getClassName($childClass);
        $parentClassName = self::getClassName($parentClass);

        $parents = class_parents($childClassName);

        if (is_array($parents) && 0 < count($parents)) {
            return in_array($parentClassName, $parents, true);
        }

        return false;
    }