private function prepareClassTreeInterfaces($className)
    {
        $interfacesArr = array();
        $reflection = new ReflectionClass($className);
        $interfacesArr[] = $reflection->getInterfaceNames();
        if (empty($interfacesArr[0])) {
            return array();
        }
        $classParents = class_parents($className);
        foreach ($classParents as $parentClass) {
            $reflection = new ReflectionClass($parentClass);
            $tmpInterfaces = $reflection->getInterfaceNames();
            if (empty($tmpInterfaces)) {
                return $interfacesArr;
            }
            array_unshift($interfacesArr, $tmpInterfaces);
        }
        return $interfacesArr;
    }
private function prepareClassTreeInterfaces($className)
    {
        $interfacesArr = array();
        $reflection = new ReflectionClass($className);
        $interfacesArr[] = $reflection->getInterfaceNames();
        if (empty($interfacesArr[0])) {
            return array();
        }
        $classParents = class_parents($className);
        foreach ($classParents as $parentClass) {
            $reflection = new ReflectionClass($parentClass);
            $tmpInterfaces = $reflection->getInterfaceNames();
            if (empty($tmpInterfaces)) {
                return $interfacesArr;
            }
            array_unshift($interfacesArr, $tmpInterfaces);
        }
        return $interfacesArr;
    }
private function prepareClassTreeInterfaces ( $ className ) { $ interfacesArr = array ( ) ; $ reflection = new ReflectionClass ( $ className ) ; $ interfacesArr [ ] = $ reflection -> getInterfaceNames ( ) ; if ( empty ( $ interfacesArr [ 0 ] ) ) { return array ( ) ; } $ classParents = class_parents ( $ className ) ; foreach ( $ classParents as $ parentClass ) { $ reflection = new ReflectionClass ( $ parentClass ) ; $ tmpInterfaces = $ reflection -> getInterfaceNames ( ) ; if ( empty ( $ tmpInterfaces ) ) { return $ interfacesArr ; } array_unshift ( $ interfacesArr , $ tmpInterfaces ) ; } return $ interfacesArr ; }
Prepares all interfaces for given class and its parents.

@param string $className
@return array
Prepares all interfaces for given class and its parents .