GraphQL\Type\Definition\ObjectType::implementsInterface PHP Method

implementsInterface() public method

public implementsInterface ( InterfaceType $iface ) : boolean
$iface InterfaceType
return boolean
    public function implementsInterface($iface)
    {
        $iface = Type::resolve($iface);
        return !!Utils::find($this->getInterfaces(), function ($implemented) use($iface) {
            return $iface === $implemented;
        });
    }