GraphQL\Type\Definition\ObjectType::implementsInterface PHP 메소드

implementsInterface() 공개 메소드

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