models/Context.php
protected function updateSubInterfaceInheritance($interface)
    {
        foreach ($interface->implementedBy as $subInterface) {
            if (isset($this->interfaces[$subInterface])) {
                $subInterface = $this->interfaces[$subInterface];
                $subInterface->methods = array_merge($interface->methods, $subInterface->methods);
                $this->updateSubInterfaceInheritance($subInterface);
            }
        }
    }
protected function updateSubInterfaceInheritance($interface)
    {
        foreach ($interface->implementedBy as $subInterface) {
            if (isset($this->interfaces[$subInterface])) {
                $subInterface = $this->interfaces[$subInterface];
                $subInterface->methods = array_merge($interface->methods, $subInterface->methods);
                $this->updateSubInterfaceInheritance($subInterface);
            }
        }
    }
protected function updateSubInterfaceInheritance ( $ interface ) { foreach ( $ interface -> implementedBy as $ subInterface ) { if ( isset ( $ this -> interfaces [ $ subInterface ] ) ) { $ subInterface = $ this -> interfaces [ $ subInterface ] ; $ subInterface -> methods = array_merge ( $ interface -> methods , $ subInterface -> methods ) ; $ this -> updateSubInterfaceInheritance ( $ subInterface ) ; } } }
Add methods to subinterfaces
@param InterfaceDoc $interface
Add methods to subinterfaces