src/Php/ClassHierarchy.php
public function getImplements($class)
    {
        $interfaces = [];
        $classId = $this->getClassId($class);
        if (isset($classId)) {
            if (isset($this->implements[$classId])) {
                foreach ($this->implements[$classId] as $interfaceId) {
                    $interfaces[$this->interfaces[$interfaceId]] = 1;
                }
            }
            foreach ($this->getAncestors($class) as $parent) {
                foreach ($this->getImplements($parent) as $interface) {
                    $interfaces[$interface] = 1;
                }
            }
        }
        return array_keys($interfaces);
    }
public function getImplements($class)
    {
        $interfaces = [];
        $classId = $this->getClassId($class);
        if (isset($classId)) {
            if (isset($this->implements[$classId])) {
                foreach ($this->implements[$classId] as $interfaceId) {
                    $interfaces[$this->interfaces[$interfaceId]] = 1;
                }
            }
            foreach ($this->getAncestors($class) as $parent) {
                foreach ($this->getImplements($parent) as $interface) {
                    $interfaces[$interface] = 1;
                }
            }
        }
        return array_keys($interfaces);
    }
public function getImplements ( $ class ) { $ interfaces = [ ] ; $ classId = $ this -> getClassId ( $ class ) ; if ( isset ( $ classId ) ) { if ( isset ( $ this -> implements [ $ classId ] ) ) { foreach ( $ this -> implements [ $ classId ] as $ interfaceId ) { $ interfaces [ $ this -> interfaces [ $ interfaceId ] ] = 1 ; } } foreach ( $ this -> getAncestors ( $ class ) as $ parent ) { foreach ( $ this -> getImplements ( $ parent ) as $ interface ) { $ interfaces [ $ interface ] = 1 ; } } } return array_keys ( $ interfaces ) ; }
gets implemented interfaces

@param string $class
@return array|false
gets implemented interfaces