private function getOrderedInterfaces($className)
    {
        $interfacesArr = $this->prepareClassTreeInterfaces($className);
        $interfaces = array();
        foreach ($interfacesArr as $classInterfaces) {
            foreach ($classInterfaces as $interface) {
                if (array_search($interface, $interfaces) === false) {
                    array_unshift($interfaces, $interface);
                }
            }
        }

        return $interfaces;
    }
private function getOrderedInterfaces($className)
    {
        $interfacesArr = $this->prepareClassTreeInterfaces($className);
        $interfaces = array();
        foreach ($interfacesArr as $classInterfaces) {
            foreach ($classInterfaces as $interface) {
                if (array_search($interface, $interfaces) === false) {
                    array_unshift($interfaces, $interface);
                }
            }
        }

        return $interfaces;
    }
private function getOrderedInterfaces ( $ className ) { $ interfacesArr = $ this -> prepareClassTreeInterfaces ( $ className ) ; $ interfaces = array ( ) ; foreach ( $ interfacesArr as $ classInterfaces ) { foreach ( $ classInterfaces as $ interface ) { if ( array_search ( $ interface , $ interfaces ) === false ) { array_unshift ( $ interfaces , $ interface ) ; } } } return $ interfaces ; }
Get a list of class interfaces ordered by plase of interface declaration.

The list is ordered by place of interface declaration. Interfaces declared on most child class are first,
while those in base class(es) - last.

@param string $className

@return array
Get a list of class interfaces ordered by plase of interface declaration .