src/Php/ClassHierarchy.php
public function addInterface($interface, $extends = [])
    {
        $interfaceId = $this->registerInterface($interface);
        if (!empty($extends)) {
            $interfaceIds = [];
            foreach ($extends as $name) {
                $interfaceIds[] = $this->registerInterface($name);
            }
            $this->interfaceExtends[$interfaceId] = $interfaceIds;
        }
    }
public function addInterface($interface, $extends = [])
    {
        $interfaceId = $this->registerInterface($interface);
        if (!empty($extends)) {
            $interfaceIds = [];
            foreach ($extends as $name) {
                $interfaceIds[] = $this->registerInterface($name);
            }
            $this->interfaceExtends[$interfaceId] = $interfaceIds;
        }
    }
public function addInterface ( $ interface , $ extends = [ ] ) { $ interfaceId = $ this -> registerInterface ( $ interface ) ; if ( ! empty ( $ extends ) ) { $ interfaceIds = [ ] ; foreach ( $ extends as $ name ) { $ interfaceIds [ ] = $ this -> registerInterface ( $ name ) ; } $ this -> interfaceExtends [ $ interfaceId ] = $ interfaceIds ; } }
add interface to hierarchy tree

@param string $interface
@param array $extends
@return self
add interface to hierarchy tree