gossi\codegen\model\parts\InterfacesPart::removeInterface PHP Method

removeInterface() public method

If the interface is passed as PhpInterface object, the interface is also remove from the use statements.
public removeInterface ( PhpInterface | string $interface )
$interface gossi\codegen\model\PhpInterface | string interface or qualified name
    public function removeInterface($interface)
    {
        if ($interface instanceof PhpInterface) {
            $name = $interface->getName();
            $qname = $interface->getQualifiedName();
            $this->removeUseStatement($qname);
        } else {
            $name = $interface;
        }
        $this->interfaces->remove($name);
        return $this;
    }